Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > Java

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 06-12-2013, 10:37 PM   #1
Jack Hard
Registered User
 
Join Date: Dec 2012
Posts: 25
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?
Jack Hard is offline   Reply With Quote

Old 01-06-2014, 05:40 AM   #2
alligatortek001
Registered User
 
Join Date: Nov 2013
Posts: 92
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.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
alligatortek001 is offline   Reply With Quote
Old 10-01-2014, 10:04 AM   #3
project
Registered User
 
Join Date: Sep 2014
Posts: 122
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

Last edited by project; 10-19-2015 at 02:29 PM..
project is offline   Reply With Quote
Old 10-09-2014, 11:15 PM   #4
softech
Registered User
 
Join Date: Oct 2014
Posts: 1,401
$(".classname").hide();
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
softech is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Definitive Javascript to hide email address? ncjbhd Javascript 2 06-09-2014 05:27 AM
Free Awesome jQuery Count Down/Up Timer Scripts JavaScriptBank Javascript 0 04-09-2013 06:09 AM
jQuery Plugins Webmastergrace Web Promotion 0 09-27-2012 09:23 PM
Problem with jquery and WP ArtphotoasiA Javascript 4 04-02-2012 04:38 AM
Looking For Jquery Expert! Need To Install Videolightbox on My Site $$ shakemelikeapig Wanted 0 02-16-2012 02:25 PM


All times are GMT -7. The time now is 04:39 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.