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: My Account My Account More stuff Here is a menu item Here is a menu item Here is a menu item Here is a menu item Notice that I've changed the IDs so that the DIV has the link ID plus some

[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 w