the problem is solved :D If u using
<input type="hidden" name="tes" value="something"> or <div style="display:none"> <input type="text" name="tes" value="something"></div> the value can't be changed. The solution is using jquery field plugin (http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm). instead using val(), using setValue() from this plugin work for me On Jun 11, 8:08 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Changing the value of a hidden input like this works fine for me. Can > you post an example? > > --Klaus > > On 11 Jun., 12:10, Andri <[EMAIL PROTECTED]> wrote: > > > oops..sorry > > > apparently if i use > > > <div style="display:none"> > > <input type="text" name="tes" value="something"></div> > > > it's also doesnt work > > > On Jun 11, 2:44 pm, Andri <[EMAIL PROTECTED]> wrote: > > > > I have this input <input type="hidden" name="tes" value="something"> > > > > then when i try to change it with > > > $('[EMAIL PROTECTED]').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