Hi folks,
I have a query and I just want to know if its possible to do or not. If yes, then it would be real helpful if you can guide me to a sample or an example.
So what I am trying to do is, do a comparison on HTML (or DOM elements). So lets take this scenario:
I have 5 rows on my page (5 <tr>
's or 5 <div>
's), and I make an ajax call to fetch more data, this time server returns me 8 rows (only 3 rows are new, 5 are still the old rows), So instead of showing all 8 rows again, I just want to append these 3 new rows to already present 5 rows.
I know one solution is to do it on my server side, sending one row at a time, but server side code is more or less frozen and all the changes need to be done on the client side only.
Your inputs are highly valuable.