Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Java (http://siteownersforums.com/forumdisplay.php?f=12)
-   -   How do hide a column using JQuery? (http://siteownersforums.com/showthread.php?t=65488)

Jack Hard 06-12-2013 10:37 PM

How do hide a column using JQuery?
 
Want to hide specifically two columns in a table using JQuery. The following code to do it:

$(".classname").hide();

But the thing is the same class name is used in all other columns in that table. So all the columns are getting hidden when I execute this JQuery.

Is there any other way to hide only those two columns?

alligatortek001 01-06-2014 05:40 AM

Hi Jack,

you can use :nth-child() Selector in jQuery.

$(document).ready(function() {
$('tr td:nth-child(1)').hide();
}


Where 1 is the column number to be hidden.

project 10-01-2014 10:04 AM

free project for computer engineering student
here i know some of the project that help you in building, creating, submitting project. free to download and use this project as final year project.
__________________________________________________ ________
http://siteownersforums.com/t53434-design-patterns.html

project download | php projects free download | vb projects | mini project in java with source code | project on library management system | student attendance management system project in php | round robin algorithm in c | online voting system project
http://siteownersforums.com/t53434-design-patterns.html
http://siteownersforums.com/t57252-b...va-applet.html

softech 10-09-2014 11:15 PM

$(".classname").hide();


All times are GMT -7. The time now is 03:22 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.