em3ricasforsale
em3ricasforsale

Reputation: 352

Remove rows from gridview with jquery

I am new using Jquery. I am using vb.net 2008, and I have built a gridview and populated it with data. I am trying to use jquery to go in and remove rows if one of the attributes of the row does not equal the user that I am currently looking at.

The attached link (http://jsfiddle.net/FJXRN/1/) shows the example of who is logged in and where his id is being displayed in a label at the top of the page and I am trying to search the rows of the grid view and deselect the checkbox for that row and hide the row of the gridview if they do not contain the same userid.

Any help would be much appreciated.

Upvotes: 1

Views: 622

Answers (1)

Evan
Evan

Reputation: 6115

This is an example of how you should do this in the front end. Note that you have an extra space in your html element for your user ID label which I removed:

http://jsfiddle.net/FJXRN/8/

please note you should have that javascript code within your document ready function in your javascript file. if you want to put it back in a function feel free to do that

Upvotes: 1

Related Questions