![]() |
Prototype tabs script "crashing" when attempting to reassign active "class"
I'm using a tab script I ran across that works only if I remove the portion of the function that removes the "active" class on the active tab when a new tab is selected.
The script requires prototype. Code:
var visibleTabContent = 'one';Code:
$(ulId).select('li.active').invoke('removeClassName', 'active');I've tried doing Code:
$(ulId).select('li.active').removeClassName('active');Error: $(ulId).select is not a function ??? The accompanying mark-up is Code:
<ul id="tabs_menu" class="margin_20 clearfix">Thanks |
try $('ulId').select
i've come across several instances where the api docs will be off on this, and it does need the single quotes. |
Hey, thanks for the response.
A new day brings a clear head and a resolution now that my head has been removed from my rear end. Argggggggg! I kick myself. It would have been good to have been using the proper version of "Prototype". 1.6.0.2. |
| All times are GMT +1. The time now is 02:33 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.