How do I get the value from a hidden form field? I'm tossing some JSON data into a hidden textarea and then need to retrieve it into jquery but via prince it doesn't appear to have any value.
Forum › How do I...?
jquery get hidden field value
$("#jsondata").val()
<textarea id="jsondata" style="display: none;">{-- jsondata --}</textarea>
<textarea id="jsondata" style="display: none;">{-- jsondata --}</textarea>
I think we don't reflect textarea contents in the value property yet. What if you access it via text() instead?
hey, nice! any idea why I have a blank page at the beginning , maybe I can email you the url?