Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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);           		 });});});
Comment

PREVIOUS NEXT
Code Example
Javascript :: node.js sign in to website and get contents of new page 
Javascript :: how to cookie set in node js 
Javascript :: vue block other script event listeners 
Javascript :: javascript array negative index 
Javascript :: modify a string in javascript 
Javascript :: Mandatory Parameter Shorthand javascript 
Javascript :: NestJs starter repo 
Javascript :: react controllers 
Javascript :: object filter 
Javascript :: reload stylesheet with out refresh page 
Javascript :: compile regex script help online 
Javascript :: on scroll image blur jquery 
Javascript :: array object make api format javascript 
Javascript :: make price comma jquery 
Javascript :: signing an msg.value transaction in ethersjs 
Javascript :: botstrap 5 
Javascript :: detect escape characters js 
Javascript :: Form Data error (unable to decode value) characters specials 
Javascript :: playwrigth await browser 
Javascript :: pass data from popup js 
Javascript :: typeorm caching queries time limit 
Javascript :: setImmediate clearImmediate 
Javascript :: how to add heaeader to http angular client 
Javascript :: Using toLocaleString() to Print JavaScript Number Format with Commas 
Javascript :: Classes and constructor functions in ES6 
Javascript :: how to send Flutter Color as json || convert String to Color Flutter 
Javascript :: GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN" electronjs 
Javascript :: socket io import es6 
Javascript :: load js on only homepage wp 
Javascript :: JS check the type stored in the name variable in JS 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =