javascript - How to refresh jquery function variables on select element change -
I am trying to send the values of a selected element as a parameter for an AJAX request though current selection Always send the initial value of the element on the page load versus the value of the value.
I have tried to update the variable when selecting it, but when the selection box changes, there is no effect on the AJAX request.
I come to javascript / jquery And when googling has not been able to come up with anything I I am a full newbie.
EDIT: The above work is part of the external library. The purpose of this is that every time an AJAX request is connected to an element, an input field update I want to send the current value of the #id_location element with the parameter in the request. I can now just send the original value of that element when the page loads and it can not be updated. Is.
get answer
parameter: {location: function () { Refund $ ('# id_location'). Val ()}},
Comments
Post a Comment