views:

70

answers:

1

Assume that a hidden field

<input type="hidden" id="hdn" name="hdn" value="100" />

So i want to blank the value of hidden field using Jquery. In javascript we can blank using this syntax

document.getElementById("hdn").value = '';

but i want it using jquery.

+5  A: 
$("#hdn").val("");

http://docs.jquery.com/Attributes/val

Ionuț G. Stan