from the part of table I have,
else if (c == 1)
{
var startTime = "h:mm AM/PM";
$("<td>")
.addClass("tableCell")
.html("<input type='text' value='" + startTime + "' />")
.data("col", c)
.appendTo(trow);
//col[counter] = startTime;
//counter++;
//masterCounter++;
}
out of this, I just want the output of startTime out. However, if I use these codes,
var content = document.getElementsByTagName('td');
col[counter] = content[c].innerHTML;
alert ('td cell number '+(counter)+' contains: ' +col[counter]);
I will get input type=’text’ value='” + startTime + “‘ / as output for col[counter]
is there anyway so I only get value startTime out of it?
I found the answer! You were correct ShankarSangoli.
I just had to enter
instead of
Thank you!