You can do this:
$('#test1').val( 'hello world' );
OR
$('#test1')[0].value = 'hello world'; // adding the array index returns the
node instead of the jQuery object
-- Josh
----- Original Message -----
From: "Natrium" <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Tuesday, May 27, 2008 12:33 PM
Subject: [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?