I have a table, and I\'m trying to find the width of each td in the table. I\'ve tried all kinds of variations of: $(\"td\")[0].width(), but none of them work,
$(\"td\")[0].width()
$("td")[0] is a DOM element not a jquery object. Simply wrap it as jquery $($("td")[0]).width()
$("td")[0]
$($("td")[0]).width()
You need to get width of each td so you could use something like
td
$.each('td', function() { var currentTDWidth = $(this).width(); // more code here });