Reputation: 4383
I have a grid that shows data from a "users" table. In that grid I don't want to show some fields such as "password", so I have hidden them from the grid, but the problem is that they also get hidden from the form and of course I need the user to be able to set it.
Any way to solve this?
Thanks
Jaime
Upvotes: 1
Views: 134
Reputation: 55740
Use a context selector
$('.password', $('#grid')).hide();
So if all your password fields have a class called password
, then using the context makes sure only the elements with the class will be searched inside the context will be hidden , and the one's in the form will not.
Upvotes: 0