Reputation: 784
Here we have a <div id="content">
and inside it AJAX loads data from the server. We have preloaded JS scripts in the whole file.
Some of the server's AJAX answers are whole forms. That forms have the same ids, but different structures. What is needed is to pick the data from freshly baked forms came from the server via AJAX, using JavaScript and create a kinda queryString to send its data again to the server via AJAX itself.
What has been tried:
alert('Hello!')
does not work.I am new in AJAX so, please, do not judge me with all the severity. Thanks!
Upvotes: 0
Views: 56
Reputation: 1888
If your issue is picking up only the latest baked forms, you can try the following approach:-
$('.lastUpdated').removeClass("lastUpdated");
Thus at any point of time,
$('.lastUpdated')
will help you pick the data from freshly baked forms came from the server
Upvotes: 1