I have two strings
Listing1(one in html format)
<ul>
<li id="1"></li>
<li id="2"></li>
<li id="3"></li>
<li id="4"></li>
<li id="5"></li>
<li id="6"></li>
</ul>
Listing2(one in json format)
{1:"r1",4:"r2"}
I need to fill the html string with the json data provided in listing 2 based on json key and id in html.
Can any one help me to solve this issue.
Thanks
Jineesh
JS/JQuery part pseudocode
Using JQuery is not necessary though.
That’s the easier way to solve your problem. Why you need to handle this in Java?