Tag Archives: jQuery .val() value attribute

jQuery .val() setter not working?

If you ever use jQuery’s .val() function to set the value of an input (in my case, a hidden one), there’s something you might not be aware of. In my implementation, I had this in the code: <input type="hidden" name="viewonly" …

Read more »