旧的浏览器真正的占位符文本修复? [英] True placeholder text fix for old browsers?

查看:99
本文介绍了旧的浏览器真正的占位符文本修复?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用jQuery代码模拟旧浏览器的占位符文本。我发现了一些很好的候选人,并且工作得很好。然而,一个问题是,解决方案倾向于输入占位符文本作为单元格值(直到用户输入)。这意味着,如果一个HTML表单提交的任何字段不变,那么占位符文本被提交,就好像它是用户输入。

是否有任何jQuery占位符解决方案,解决这个?

干杯

解决方案

我使用jquery占位符。 ü应该尝试它



https:// github。 com / prantor19 / jquery-placeholder


I would like to use jQuery code to simulate placeholder text for old browsers. I have found a number that are great candidates, and work well. However, one issue is that the solutions tend to input the placeholder text as the cell value (until user input). This means that if an html form is submitted with any fields unchanged, then the placeholder text is submitted as if it is user input.

Are there any jQuery placeholder solutions that solve this?

Cheers

解决方案

I use jquery placeholder . U should try it

https://github.com/prantor19/jquery-placeholder

这篇关于旧的浏览器真正的占位符文本修复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆