Binding the checkboxes in the table with HTML in XML

admin

Administrator
Staff member
i created a XML file that have values for checkboxes. And I created a HTML file with checkboxes. I'm just wondering how I can bind the data to HTML, so the user can automatically see the checkboxes "checked" when the HTML file is opened.

The data in the XML file "data.xml

<Car>false</Car>
<Boat>false</Boat>
<Motorcycle>true</Motorcycle>



<div datasrc="#data" id="rightbox">
<h2 id="subtitle">Transportation</h2>

<table width="400" align="center">
<tr>
<td width="100">Car</td>
<td><input type="checkbox"></td>
<td width="100">Boat</td>
<td><input type="checkbox"></td>
<td width="100">Motorcycle</td>
<td><input type="checkbox"></td>
</tr>
</table>
</div>
 
Back
Top