Hi, I want to pass the dynamicLi element id and text into the PHP which look like this.
<ul id ='dynamicUL'>
<li id='dynamicLi'><div id="fieldname">Field 1</div></li>
<li id='dynamicLi'><div id="fieldname">Field 2</div></li>
<li id='dynamicLi'><div id="fieldname">Field 3</div></li>
</ul>
The dynamicLi and the fieldname is generate from database through PHP and jQuery, and therefore do not have a fix number.
What method should I use to pass this fieldname id and text (Field 1, 2, 3) into PHP? Using array, json or xml? And how should I do it using jQuery?
thank you.