Alter this Simple Jquery Accordion Menu Code to Highlight Active Link
$5-10 USD
$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
It's free to sign up and bid on jobs
3 freelancers are bidding on average $6 USD for this job
$7 USD in 1 day
4.9 (13 reviews) $5 USD in 1 day
4.8 (11 reviews) $7 USD in 1 day
5.0 (2 reviews)