快速提问...我想知道如何才能实现这一点。
好的,我有一个像这样的输入字段:
<input type="text" id="input1" size="10" name="" value="" class="checked other_amount" onfocus="Toggle('radio1', 'input1');" />
我想单击 ID 为 #resetPrompt 的 div,并使用“other_amount”填充输入中的空名称 attr
我已经没有主意了,这真是漫长的一天
多谢你们,
Matt
$('#resetPrompt').click(function(){
$('#input1').attr('name', 'other_amount');
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)