Thread:Jens Ingels/@comment-3974211-20141201111120/@comment-3974211-20141202112540

As far as I understood your original code, $( "#lv" ).change(callChange); is an event - i.e. whenever "lv" is changed.

Whereas "var element = document.getElementById('lv'); element.value = 19; callChange;" is only ever called once on the initial run-through, and sets the selector's default value.

If it was being called twice, the selector would always show "1 - 18" regardless of what the user picked - but (when it was working) it worked.

Also, callChange is defined - or, what I understand define to mean. And in what way doesn't it get called? Surely those are it being called twice.