One line of code using jQuery:
$('td:nth-child(2)').hide();
// If your table has header(th), use this:
//$('td:nth-child(2),th:nth-child(2)').hide();
Source: Hide a Table Column with a Single line of jQuery code
More Related Contents:
- How can I let a table’s body scroll but keep its head fixed in place?
- HTML table with fixed headers and a fixed column? [closed]
- HTML Table with vertical rows
- Convert TD columns into TR rows
- How to display Image dynamically on UI?
- Large dynamically sized html table with a fixed scroll row and fixed scroll column
- How do I display a lightbox on only homepage of my blogger blog?
- Datepicker validation 18 years of age [closed]
- Html5, css3, javascript, jquery [closed]
- My JS is not working (chat application)
- Auto coloring in text area in html
- How to apply !important using .css()?
- How to load up CSS files using Javascript?
- How do I simulate a hover with a touch in touch enabled browsers?
- HTML text-overflow ellipsis detection
- Change link color of the current page with CSS
- Is there a way to make text unselectable on an HTML page? [duplicate]
- Bootstrap close responsive menu “on click”
- Positioning element at center of screen
- Using jQuery how to get click coordinates on the target element
- Is it possible to dynamically scale text size based on browser width?
- Responsive horizontal page sliding
- Need to find height of hidden div on page (set to display:none)
- Blur Img’s & Div’s in HTML using CSS
- What are the possible ways to hide an element via CSS [closed]
- Google Maps API v3: InfoWindow not sizing correctly
- What are some good ways to prevent people from copying my source code? [closed]
- Scroll Position of div with “overflow: auto”
- Set focus and cursor to end of text input field / string w. Jquery [duplicate]
- Override the -webkit-search-cancel-button