I\'m trying to set the value of the hidden field below using jQuery.
I\'m using
You don't need to set name , just giving an id is enough.
<input type="hidden" id="testId" />
and than with jquery you can use 'val()' method like below:
$('#testId').val("work");