是否过多要求在jQuery Mobile上有一个不可见的按钮? [英] Is it too much to ask to have an invisible button on jQuery Mobile?

查看:143
本文介绍了是否过多要求在jQuery Mobile上有一个不可见的按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在jQM上有一个隐形按钮?

解决方案

使用此标签创建按钮 -



< input type =[yourchoice,mine was submit]id =[yourchoice]data-role =none/>



关键部分是 data-role =none。这意味着jQM忽略它,所以当你使用 $。hide(),你不会留下一个随机空的blob渲染在屏幕上。


I struggled with this for a while, so figured I'd put the answer on here.

How can I have an invisible button on jQM?

解决方案

Create the button using this tag -

<input type="[yourchoice, mine was submit]" id="[yourchoice]" data-role="none" />

The crucial part is the data-role="none". This means jQM ignores it, so when you use $.hide(), you're not left with a random empty blob of rendering on the screen.

这篇关于是否过多要求在jQuery Mobile上有一个不可见的按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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