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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.