Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Oddly enough, the method is just called remove()...
Code:
$("#col3").remove();
If you just want to hide it(make it act as if it is gone, but it still remains in the DOM) use the hide() method:
If you want to remove the third column, but don't know its ID, you could do it like this:
Code:
$("tr td:nth-child(3)").remove();//1 based
//or:
$("tr td:eq(2)").remove();//zero based
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|