In a page I have few tabs and I was asking if its possible to enable disable that function of the tabs with a toggle click.
The tabs code looks like:
jQuery('.tabs a').click(function() {
var ref = jQuery(this).attr('href').split('#')[1];
jQuery('div.tab_content:not(#' + ref + ')').hide();
jQuery('#' + ref).fadeIn();
return false;
});
For the toggle I use: http://papermashup.com/demos/ajax-switch/
Sorry if I am not able to post a link. It is a simply iPhone style toggle switch.
Thanks alot
from what i understand you meen something like that ?:
EDIT :
above code will execute this function only once