Return to Snippet

Revision: 43185
at March 18, 2011 18:02 by erraja_07


Initial Code
function showContent(id)
{
	var items = ['estore','marketplace','favourites'];
	// Highlight Selected Buttons
	$.each( items, function(key, value){
		if(value != id)
		{		
			$('#'+value).removeClass('selected');		
			$('#my_'+value).css('display','none');				
		}else{
			
			$('#'+id).addClass('selected');	
			$('#my_'+id).css('display','block');	
		}
	 });						
}

Initial URL

                                

Initial Description

                                

Initial Title
JQuery Menu Tabs - Highlight Selected

Initial Tags

                                

Initial Language
JavaScript