Using jQuery Highlight when a field is updated in asp.net
I am working on a web application and I want to incorporate the jQuery Highlight functionality. The way it is set up now is there is a gridview with a link button to add an entry. When you select the link button to add an entry a form appears to fill out all of the information. Once the information is filled out and the user selects "Insert" I would like to have the insert onClick function in the code behind somehow activate the jQuery Highlight command. I c开发者_运维技巧an not seem to get this to work. The form to insert the data is using a command field if that will help.
As clicking insert will add a row at the bottom of the table you can do the following when the dom is ready after refreshing the page;
$('#gridviewID tr:last td').effect("highlight", {}, 3000);
So you want the effect to run on the recently updated row? On the RowUpdated event, you're going to have to render JavaScript statements to run on document ready. I'm not exactly sure what you can pass up, you probably could pass up the row ID (if it renders, which I think it does), or the current row index.
HTH.
精彩评论