Find Jobs
Hire Freelancers

Alter this Simple Jquery Accordion Menu Code to Highlight Active Link

$5-10 USD

In Progress
Posted over 12 years ago

$5-10 USD

Paid on delivery
I need the following Jquery code to be altered so that the active link is highlighted red. I need this fast. function initMenus() { $('[login to view URL] ul').hide(); $.each($('[login to view URL]'), function(){ var cookie = $.cookie([login to view URL]); if(cookie === null || String(cookie).length < 1) { $('#' + [login to view URL] + '.expandfirst ul:first').show(); } else { $('#' + [login to view URL] + ' .' + cookie).next().show(); } }); $('[login to view URL] li a').click( function() { var checkElement = $(this).next(); var parent = [login to view URL]; if($('#' + parent).hasClass('noaccordion')) { if((String(parent).length > 0) && (String([login to view URL]).length > 0)) { if($(this).next().is(':visible')) { $.cookie(parent, null); } else { $.cookie(parent, [login to view URL]); } $(this).next().slideToggle('normal'); } } if(([login to view URL]('ul')) && ([login to view URL](':visible'))) { //$('#' + parent + ' ul:visible').slideUp('normal'); if($('#' + parent).hasClass('collapsible')) { $('#' + parent + ' [login to view URL]:visible').slideUp('normal'); } return false; } if(([login to view URL]('ul')) && (![login to view URL](':visible'))) { $('#' + parent + ' ul:visible').slideUp('normal'); if((String(parent).length > 0) && (String([login to view URL]).length > 0)) { $.cookie(parent, [login to view URL]); } [login to view URL]('normal'); return false; } } ); } $(document).ready(function() {initMenus();});
Project ID: 2701268

About the project

3 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average $6 USD for this job
User Avatar
See private message.
$7 USD in 1 day
4.9 (13 reviews)
3.7
3.7
User Avatar
See private message.
$5 USD in 1 day
4.8 (11 reviews)
3.0
3.0
User Avatar
See private message.
$7 USD in 1 day
5.0 (2 reviews)
1.4
1.4

About the client

Flag of UNITED STATES
Florida, United States
4.9
7
Member since Oct 13, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.