Javascript: Get Cell's Column Id
For example: I want to accomplish what the following psuedo code does var intCol = document.getElementById('x').column Is there a way to do this?
Solution 1:
Why can't you use cellIndex
?
On this page:
$('.postcell')[0].cellIndex> 1$('.votecell')[0].cellIndex> 0
I know people hate W3Schools, but they do provide a good basic dataset: http://www.w3schools.com/jsref/prop_tabledata_cellindex.asp
Post a Comment for "Javascript: Get Cell's Column Id"