| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > jQuery+switch/case to show <ul> type of question |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
or just Kris
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 176
|
jQuery+switch/case to show <ul> type of question
Hello fine people of DT, I am writing a little .js file that looks for the pathname in order to show an <ul> conditionally. Here's how I am trying this: Code:
My question is: is there a more efficient way of dealing with this without touching the markup (Meaning only using the external .js file) ? Thanks a lot. Last edited by KrisMarissens : 18-02-2010 at 19:53. |
|
|
|
|
|
#4 (permalink) |
|
or just Kris
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 176
|
Code:
The hyperlinks are the pages where the .subnav of '.predoctorale-mandaten' need to be shown. Hope this bit clears it up a little. If not I'll post a live example. |
|
![]() |
|