I'm trying to set the value of the hidden field below using jQuery.
<input type="hidden" value="" name="testing" />
I'm using this code:
var test = $("input[name=testing]:hidden");
test.value = 'work!';
But its not working. What's wrong with my code?