I'm trying to find the widths of successive <td> elements in a table.
$("tbody > tr")[0]
This returns an object that looks like HTML in the console. I don't what this is.
typeof($("tbody > tr")[0])
This returns "object", which is also unhelpful.
I'm afraid that if I stringily this object, I won't be able to parse the css values. What is this object and how should I find the width of every nth td element in the first tr of a table?
EDIT
I'm trying to find the width of the td. I can't target $("tbody > tr")[0][0].clientWidth because that's not array. Again, I don't know what this "object" is or what it's API is or how I'm suppose to interact with it without possibly destroying the CSS data by stringifying it.
$("tbody > tr")gets a collection of elements, and you're getting the first one from the collection. You can inspect it in your browsers console, right?$("tbody > tr").eq(0).css("css-property-name-goes-here"). Or use$("tbody > tr").each(function() { ... });to do something with each element