How to change a td without it's id? : Actually i'm trying to make something "strange" i have a row in a table where i have the head of the row and 96 td item.

Each row is clickable by the following function

        $("#table tr").click(function(){});

Now by getting a value from 0 to 96 i need to get the td in the place X and do a colspan on it.

As in the form i get value 40 i need to make the colspan on the 40th td in the clicked row.

How can i implement something like that in javascript or jquery?
