Forum How do I...?

jquery get hidden field value

nleggatt
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.
mikeday
How exactly are you accessing it? It may be via a DOM property Prince doesn't support yet.
nleggatt
$("#jsondata").val()

<textarea id="jsondata" style="display: none;">{-- jsondata --}</textarea>
mikeday
I think we don't reflect textarea contents in the value property yet. What if you access it via text() instead?
nleggatt
hey, nice! any idea why I have a blank page at the beginning , maybe I can email you the url?
mikeday
Sure, mikeday@yeslogic.com.
nleggatt
sent