Reputation: 189
I am developing a jquery mobile app and need to hide certain input fields if a certain action is taken. 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,
$("#idname").css("display", "none")
but that gives the same results. does anyone have a solution to this problem.
Upvotes: 0
Views: 184
Reputation: 323
Check once if there are two ids with same name in a page or not. A page must have only one id with identiacal name. Rather than id, you can try this with use of class attribute.
Upvotes: 2