有没有可以编辑的水印
我正在使用这个插件,它工作得很好,但我无法编辑文本......如果我点击它,它就会消失。有没有一种简单的方法来实现该功能或任何其他可能可以帮助我的插件
I am using this plugin and it works great but i cant edit the text ...if i click on it, it disappears. Is there an easy way to implement that or any other plugin that maybe able to help me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚写了一个类似的片段,可能对您有用。如果浏览器可用,它将使用 html5
placeholder
属性,如果浏览器不支持它,它将回退。链接到 jsfiddle 代码段
链接到其他 SO 帖子
编辑: 我误解了你的帖子,抱歉。
尝试一下这个示例。它不是很复杂,但它是一个小插件,应该可以帮助您入门。也许您可以提供更多信息,因为我不知道除了用值预先填充输入之外您为什么要这样做。
使用@Tom的评论我重写了这个jsfiddle。有很多方法可以实现这一目标,假设这就是您想要的。
I just wrote a similar snippet that may be useful to you. It would use the html5
placeholder
attribute if it were available to the browser, and would fall back if the browser didn't support it.Link to jsfiddle snippet
Link to other SO post
Edit : I misunderstood your post, sorry.
Try this example out. It's not very complicated, but it is a small plugin that should get you started. Maybe you could give a little more information, since I don't know why you would want to do this other than to pre-populate the inputs with values.
Using @Tom's comment I rewrote this jsfiddle. There are many ways to achieve this, assuming this is what you want.