[jQuery] changing value of hidden input

[jQuery] changing value of hidden input


I have this input <input type="hidden" name="tes" value="something">
then when i try to change it with
$('input[@name=tes]').val('change to somethat');
it doesn't work. if i change the type to 'text' it works. from now on
i'm just write like this
<div style="display:none">
<input type="text" name="tes" value="something"></div>
i just curiuos is there any tricks to change the input, from the
'hidden' input not 'text'
thx before