glenelkins Posted August 26, 2010 Share Posted August 26, 2010 Hi I am having trouble getting the value of a hidden field. <input type="hidden" id="test" value="test" /> alert ( $('#test').val() ); the above code alerts NaN ... but if its a visible text element works fine, so how do i actually get the value of the hidden field? Link to comment https://forums.phpfreaks.com/topic/211770-jquery-hidden-field/ Share on other sites More sharing options...
Alex Posted August 26, 2010 Share Posted August 26, 2010 You might want to check that you're not doing something else wrong somewhere else. The supplied code works fine for me. Link to comment https://forums.phpfreaks.com/topic/211770-jquery-hidden-field/#findComment-1103870 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.