Jump to content

jQuery Hidden Field


glenelkins

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.