Skip to content

Instantly share code, notes, and snippets.

@hughfdjackson
Forked from anonymous/gist:1703623
Created January 30, 2012 09:59
Show Gist options
  • Select an option

  • Save hughfdjackson/1703648 to your computer and use it in GitHub Desktop.

Select an option

Save hughfdjackson/1703648 to your computer and use it in GitHub Desktop.
sendoushi - pastebin.com/JzGNVwCB
void function(){
var InstM=jQuery('#InstitutionalM');
var SolutM=jQuery('#SolutionsM');
var DevM=jQuery('#DevelopersM');
InstM.subname=jQuery('#InstitutionalSM');
SolutM.subname=jQuery('#SolutionsSM');
DevM.subname=jQuery('#DevelopersSM');
var AllSubMenu=jQuery('#InstitutionalM,#SolutionsM,#DevelopersM');
AllSubMenu.click(function(){ SubMenusFnc(this); });
function SubMenusFnc(el){
current=jQuery(el);
alert(current.subname);
AllSubMenu.each(function(){
//alert(current.subname);
});
}
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment