简体   繁体   English

hide()在jquery mobile中无法完全工作

[英]hide() not working completely in jquery mobile

I am developing a jquery mobile app and need to hide certain input fields if a certain action is taken. 我正在开发一个jQuery移动应用程序,如果采取了某些措施,则需要隐藏某些输入字段。 I use 我用

$("#idname").hide()

and it works but not completely, there is a line were the field once was, it seems like the field is not hidden but just made very small. 并且它可以正常工作,但并不完全,曾经有一段直线曾经是这个领域,似乎该领域不是隐藏的,只是变得很小。 I have tried using css, 我已经尝试过使用CSS,

$("#idname").css("display", "none")

but that gives the same results. 但这给出了相同的结果。 does anyone have a solution to this problem. 有谁能解决这个问题。

Check once if there are two ids with same name in a page or not. 检查一次页面中是否有两个具有相同名称的ID。 A page must have only one id with identiacal name. 一个页面必须只有一个具有相同名称的ID。 Rather than id, you can try this with use of class attribute. 您可以使用class属性尝试使用id而不是id。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM