What is the jQuery for setting inner value using the outer attribute? -



What is the jQuery for setting inner value using the outer attribute? -

i need alter value "local" "remote" in html snippet below. can please advise how done?

<td headers="comment"> <input type="text" name="f12" size="60" maxlength="2000" value="archived" id="f12_0001"> <input type="hidden" name="f01" value="<input type=&quot;hidden&quot; name=&quot;f13&quot; value=&quot;local&quot; />" class="rowhandle" id="f01_0001"> </td>

thanks in advance

correct html following

<td headers="comment"> <input type="text" name="f12" size="60" maxlength="2000" value="archived" id="f12_0001"/> <input type="text" name="f01" value="local" class="rowhandle" id="f01_0001"/> </td>

and can alter value of input jquery using .val because .val used input tag

$(function() { $('#f01_0001' ).val('remote'); });

http://jsfiddle.net/zw2e2/

jquery

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -