sungpeng Posted October 1, 2015 Share Posted October 1, 2015 $.ajax({ success:function(html){ $('#msg').html(html); } }); <p id="msg"></p> Is it possible to extract the id="msg" results and put it in php variable or html for further command ? Quote Link to comment Share on other sites More sharing options...
requinix Posted October 1, 2015 Share Posted October 1, 2015 But... isn't your AJAX hitting PHP in the first place? Because that's where the "html" comes from, and that's presumably the "id=msg results" you're talking about. Quote Link to comment Share on other sites More sharing options...
Stefany93 Posted October 1, 2015 Share Posted October 1, 2015 Yes, just display the freaking results, you don't need to store them in a variable and use them "later" that makes using AJAX completely pointless. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.