Code: Select all
<div id="divPrimary">
<table>
<tr>
<th> Name:</th>
<th><input type="text" [b]id="CPCONTACT_PERSON_NAME" name="CPCONTACT_PERSON_NAME"[/b] value="" /></th>
</tr>
<tr>
<th>Designation:</th>
<th><input type="text" id="CPCONTACT_PERSON_DESIGNATION" name="CPCONTACT_PERSON_DESIGNATION" value="" /></th>
</tr>
</table>
</div>
Code: Select all
var contents = document.getElementById(sdiv).innerHTML;
Contents is like:
Code: Select all
<table>
<tr>
<th> Name:</th>
<th><input [b]id=CPCONTACT_PERSON_NAME name=CPCONTACT_PERSON_NAME[/b] /></th>
</tr>
...
</table>
Hope to get some reason from you guys.
Thanks