Re: [jQuery] New to JS and jQuery

2010-01-05 Thread brian
That works for me but I do see how this can be refactored: a id=stuff class=baritem href=#stuff_menuMy Account/a div id=stuff_menu class=SomeClass a href=##My Account/a a href=##More stuff/a a href=##Here is a menu item/a a href=##Here is a menu item/a a

[jQuery] New to JS and jQuery

2010-01-04 Thread Valerij
Hey guys, I'm trying to create 1 really simple function but it just doesn't work! function showMenu(menu) { var menuid = $( #+menu ); var menuRoot = $( #+menu+-root ); menuid.toggle(); menuRoot.blur(); } What this suppose to do is when you click a link, it will