Creating an object in javascript pointing to a table row with an "id"
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-03-16T20:17:22Z
Indexed on
2010/03/16
20:21 UTC
Read the original article
Hit count: 203
JavaScript
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>
© Stack Overflow or respective owner