使用jQuery删除输入占位符 [英] Remove input placeholder using jquery
本文介绍了使用jQuery删除输入占位符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道如何使用jquery删除输入占位符吗?
does anyone know how to remove input placeholder using jquery?
我想做的是,如果inputbox
之一得到一个值...所有输入框占位符都将被删除....有人知道该怎么做吗?
I want to do is if one of the inputbox
got a value...all the inputbox placeholder will be remove....does anyone know how to do that?
<input type="text" name="name" placeholder="1.)">
<input type="text" name="age" placeholder="2.)">
<input type="text" name="address" placeholder="3.)">
推荐答案
应该工作:
$(':input').removeAttr('placeholder');
这篇关于使用jQuery删除输入占位符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文