Answers for "how to get current row value by clicking a button"

0

how to get current row value by clicking a button

jQuery(document).ready(function( $ ){    jQuery('body').bind('DOMNodeInserted DOMNodeRemoved', function() {      jQuery(".modal-body tr .btn").on('click', function(){        var currentRow =jQuery(this).closest("tr");        var surename=currentRow.find ("td:eq(2)").html();        var tc_name=currentRow.find ("td:eq(3)").html();        var tele_phone=currentRow.find("td:eq(4)").text();        var e_mail=currentRow.find("td:eq(5)").text();     	        jQuery(".get_organization_teacher_surname").val(surename);     	jQuery(".get_organization_teacher_name").val(tc_name);        jQuery(".get_organization_teacher_email").val(e_mail);        jQuery(".get_organization_teacher_phone").val(tele_phone);           		 });});});
Posted by: Guest on January-17-2022

Code answers related to "how to get current row value by clicking a button"

Browse Popular Code Answers by Language