Forum Home
|
Marketplace
|
Articles
|
Blogs
|
Interviews
|
Tools
REGISTER
|
SEARCH
|
MEMBERS
|
F.A.Q.
Register Here
Forum Rules
Webmaster-Talk.com
>
Coding Talk
>
JavaScript Forum
>
JQuery - Hide Table Rows
Link Back
Thread Tools
Search this Thread
JQuery - Hide Table Rows
11-07-2009, 08:15 AM
#
1
(
permalink
)
JQuery - Hide Table Rows
evans123
Ultra Talker
Posts: 350
Trades:
0
Talkupation:
I currently use a dropdown box where you select the option and it will show all the <tr>'s in a table with that "id", but i want it to hide all other <tr>'s in the table which do not the the "id" selected, can anyone help me or tell me what to do?
__________________
SoldierExteme.com
- Free MMORPG - sign-up today!
Backthebulls.com
- Free online games (mad_willsy's)
Msnextra.co.uk
- Msn Items
When You
Register
, These Ads Go Away!
11-07-2009, 08:53 AM
#
2
(
permalink
)
Re: JQuery - Hide Table Rows
wayfarer07
NYE-KEE
Latest Blog Post:
Competing in a Global Marketplace
Posts: 3,150
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades:
0
Talkupation:
Code:
$("table tr:not(#special)").hide()
jQuery allows the :not pseudoselector to indicate a negative exception.
__________________
Wayfarer
|
jQuery Tooltip Plugin
|
Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola
11-07-2009, 09:44 AM
#
3
(
permalink
)
Re: JQuery - Hide Table Rows
evans123
Ultra Talker
Posts: 350
Trades:
0
Talkupation:
that works but i have a table header with the class "tableheader" which i require to still be there! any way i can incorperate that in?
__________________
SoldierExteme.com
- Free MMORPG - sign-up today!
Backthebulls.com
- Free online games (mad_willsy's)
Msnextra.co.uk
- Msn Items
Last edited by evans123; 11-07-2009 at
09:46 AM
..
11-07-2009, 03:03 PM
#
4
(
permalink
)
Re: JQuery - Hide Table Rows
wayfarer07
NYE-KEE
Latest Blog Post:
Competing in a Global Marketplace
Posts: 3,150
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades:
0
Talkupation:
if you're using jQuery 1.3 or above, :not supports complex statements, such as a comma delimited list:
Code:
$("table tr:not(#special,.tableheader)").hide()
__________________
Wayfarer
|
jQuery Tooltip Plugin
|
Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola
11-07-2009, 03:12 PM
#
5
(
permalink
)
Re: JQuery - Hide Table Rows
evans123
Ultra Talker
Posts: 350
Trades:
0
Talkupation:
yeah i am ! thanks!
__________________
SoldierExteme.com
- Free MMORPG - sign-up today!
Backthebulls.com
- Free online games (mad_willsy's)
Msnextra.co.uk
- Msn Items
« Reply to
JQuery - Hide Table Rows
Previous Thread
|
Next Thread
Webmaster-Talk.com
>
Coding Talk
>
JavaScript Forum
>
JQuery - Hide Table Rows
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
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
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Webmaster Resources Marketplace:
Software Development Company
|
Webhosting.UK.com
|
Text Link Brokers
|
Dedicated Server Hosting
|
Managed Hosting
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
Mark Forums Read
-
View Forum Leaders
-
Contact Us
-
Webmaster Forum
-
Advertise
-
Archive
-
Privacy Statement
-
Top
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Furl this Thread!
Page generated in
0.11235
seconds with
13
queries