javascript - Accessing live data created by jQuery in php -


i have method in jquery code generates rows , add them table in html follows (and works fine):

$(document).ready(function () { $("#textdateandtime").datetimepicker(); $(document).on("click","#ulinvite li h6",function(){     var h=this;     var selected=h.innertext.split(' ')[0];     var myexp=new regexp(selected,"i");     $.getjson("json_data.php",function(data){         $.each(data,function(key,val){             if((val.username.search(myexp))==0){                 var output="<tr>"                     +"<td>"+val.username+"</td>"                     +"<td>"+val.firstname+"</td>"                     +"<td>"+val.lastname+"</td>"                     +"</tr>";                 $("#tableinvite").append(output);                 h.parentnode.parentnode.removechild(h.parentnode);             }         });     }); }); 

and table in html file simple:

<table name="tableinvite" id="tableinvite" border="1px solid black"> </table> 

then want use generated rows in php file, called in <form> tag in html method post. use simple_html_dom.php file parse table find method, don't <td> elements because generated jquery, while them fine if in html file originally.

require('simplehtmldom_1_5/simple_html_dom.php'); $html = file_get_html('add_meeting.html'); foreach($html->find('tr') $row) {     $username = $row->find('td',0)->plaintext;     $firstname = $row->find('td',1)->plaintext;     $lastname = $row->find('td',2)->plaintext; } 

but never gets foreach because can't find <tr> elements there.

so, how can access rows generated live?

thanks.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -