Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81666

Delete row using button dropdown inside table

$
0
0
All

On the table we have a dynamic drop down menu that is generated for the last column on each table row
"<ul class=\"dropdown-menu\">" +
     				  	' <li><a class="btnDelete">Delete</a></li>' +
     				  "</ul>" +

In the js we have

$(".btnDelete").live('click',function() {
		var sData = oTable.fnGetData( this.parentNode.parentNode.parentNode.parentNode);
		
	});

When this fires the table does not return the row that the button was clicked from? Does anyone have an example of this?

Viewing all articles
Browse latest Browse all 81666

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>