|
Hi All,
I am using vb.net web application and in this application I create a dynamic table for displaying db query result.
At this point, I want to use a javascript function which is called in Pageload. This function will delete selected rows by using table id.
By the way there is no checkbox, linkbutton, etc... in the table.
Thanks for your help,
|
|
|
|
|
You can assign id to the TR element and when you want to delete the row then just set the innerText of that tr to '' blank. Hope this will help.
|
|
|
|
|
Could you please an example? How can i handle the selected row id and how can i use innerText?
Thanks,
|
|
|
|
|
Tables actually have some useful methods for this kind of thing - you can delete the rows by position using deleteRow()[^].
|
|
|
|