Posted By

erraja_07 on 03/18/11


Tagged


Versions (?)

JQuery Menu Tabs - Highlight Selected


 / Published in: JavaScript
 

  1. function showContent(id)
  2. {
  3. var items = ['estore','marketplace','favourites'];
  4. // Highlight Selected Buttons
  5. $.each( items, function(key, value){
  6. if(value != id)
  7. {
  8. $('#'+value).removeClass('selected');
  9. $('#my_'+value).css('display','none');
  10. }else{
  11.  
  12. $('#'+id).addClass('selected');
  13. $('#my_'+id).css('display','block');
  14. }
  15. });
  16. }

Report this snippet  

You need to login to post a comment.