我如何使用Jquery创建表单UI? [英] How I Do Create A Form Ui With Jquery ?
本文介绍了我如何使用Jquery创建表单UI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在c#中使用ui jquery提交表单,现在我希望点击文本框时是焦点而文本框为空时写入文本框name ...
i have a form submit in c# with ui jquery , now i want while click on text box be focus and while text box is null write in text box "name ..."
推荐答案
尝试使用jQuery输入文本框水印效果 [ ^ ]
如果你想使用插件 - jQuery的水印插件 [ ^ ]
如果您能负担得起使用HTML5,在标签上使用占位符属性...
https:/ /developer.mozilla.org/en/docs/Web/HTML/Element/Input#Attributes [ ^ ]
If you can afford using HTML5, use placeholder attribute on your tag...
https://developer.mozilla.org/en/docs/Web/HTML/Element/Input#Attributes[^]
这篇关于我如何使用Jquery创建表单UI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文