REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
JavaScript Forum
You are currently viewing our JavaScript Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
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: 468
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?
Register
now for full access!
11-07-2009, 08:53 AM
#
2
(
permalink
)
Re: JQuery - Hide Table Rows
wayfarer07
Poo on You
Latest Blog Post:
Introducing WowWindow
Posts: 3,985
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.
__________________
Join me on
Please login or register to view this content.
Registration is FREE
11-07-2009, 09:44 AM
#
3
(
permalink
)
Re: JQuery - Hide Table Rows
evans123
Ultra Talker
Posts: 468
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?
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
Poo on You
Latest Blog Post:
Introducing WowWindow
Posts: 3,985
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()
__________________
Join me on
Please login or register to view this content.
Registration is FREE
11-07-2009, 03:12 PM
#
5
(
permalink
)
Re: JQuery - Hide Table Rows
evans123
Ultra Talker
Posts: 468
Trades:
0
Talkupation:
yeah i am ! thanks!
« Reply to
JQuery - Hide Table Rows
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
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
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.30217
seconds with
12
queries