Daf*_*Dev 0 javascript php jquery input
所以我有10个或更多的东西<input type=text>,我用它填充数据库值.
<input type=text>
一些值将使0输入将其value设置为0.我想选择所有这些输入并在窗口加载时将其值设置为空.
0
value
我做了一些谷歌搜索,但没有找到任何可以帮助我这样做的脚本.
Roh*_*mar 5
试试这个,
$(function(){ $('input[type=text]').each(function(){ if($(this).val()==0) { $(this).val(''); } }); });
归档时间:
12 年,11 月 前
查看次数:
4028 次
最近记录: