[jQuery] how to change the value of a hidden inputtype?

[jQuery] how to change the value of a hidden inputtype?


I have a hidden inputtype:
<input type="hidden" name="test1" id="test1" value="" />
How can I change the value of it by using JQuery?
This is what I am doing.
$('#test1').value = "hello world";
What am I doing wrong?