Creating an object in javascript pointing to a table row with an "id"
- by Matt
I'm having trouble finding information online for creating a object in javascript and pointing it to a id in the html.
Here's what I have so far for the JavaScript:
function countRecords()
{
headRow=new Object();
//point to specific id here?
var rowCount = 0;
The HTML:
<table id="prodTable">
<tr><th colspan="8">Digital Cameras</th></tr>
<tr id="titleRow">
<th>Model</th>
<th>Manufacturer</th>
<th>Resolution</th>
<th>Zoom</th>
<th>Media</th>
<th>Video</th>
<th>Microphone</th>
</tr>