I need help with creating an object in JavaScript and linking it to an ID in the HTML.
Here is what my JavaScript code looks like so far:
function countRecords()
{
headRow=new Object();
//how can I link this to a specific ID?
var rowCount = 0;
This is the HTML code:
<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>