【发布时间】:2011-06-19 12:59:00
【问题描述】:
我正在尝试更改输入的类型,特别是在点击输入后将 type="text" 更改为 change="password"。
我不知道为什么,但我不能将选项 type="password" 作为属性添加到输入。
$('input#id_reg_pass').removeAttr("type"); #this works, type="text" is removing
$('input#id_reg_pass').attr('type', 'password'); #problem, this not works
$(this).addClass('exampleText').val($(this).attr('title'));
没有人有类似的问题吗?我会为每一个提示感到高兴... 谢谢
【问题讨论】: