How to change cell data?


I have a table which has 7 cells. when the page is loaded I pre-populate those table cells which has an ahref and img in it.
I have made a php script also just gives me output as json for next / prev. 7 products.

I just want to know how to use that json data which has url for ahref and url for img picture to replace the content in cells with new data using jquery etc. ?

Please help.


You can use .parseJSON() to convert the JSON data string in to an actual object, and then depending on the structure of it, use [url=“”].each() to process each piece of data, where you can use jQuery to [url=“”]create your elements and then either [url=“”].replaceWith() or [url=“”].replaceAll() command to replace the old contents with the newly updated.