user727308
user727308

Reputation: 189

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. 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

Answers (1)

Miral Viroja
Miral Viroja

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

Related Questions