Goodmorning
I'musingapagedmodalwithdatatable
,andwhenIsearchorchangepagethefunctiontoaddthepersononthemainpage.
JavascriptFunction
$(function(){$('.add').click(function(e){e.preventDefault();varvId=$(this).parent().parent().find("#id").text();
var vPessoa = $(this).parent().parent().find("#pessoa").text();
//alert(vId + '/' + vPessoa)
$('#idforn01').attr('value', vId);
$('#forn01').attr('value', vPessoa);
// document.getElementById('forn01_teste').innerHTML = vPessoa;
});
});