Thursday, 5 September 2013

jQuery.val() returning wrong (initial) value

jQuery.val() returning wrong (initial) value

I'm using a jQuery plugin which generates a text input element.
When I change generated input's value; the physical value attribute is
changed in HTML (checked with firebug).
But, when I try to fetch the new value with .val(), I get the element
initial value (taken by the plugin).
Did the plugin override the .val() method? Why isn't .val() working
properly for me?
Edit: I'll try and post some code bits.

No comments:

Post a Comment