[jQuery] Re: select element by id

2007-11-30 Thread leepowell
There are two issues here: 1. There should never be any more than one instance of an id on any one page so your query about being able to select multiple ID's is flawed by this. 2. In your code you would need to prepend your is query with a # As for being able to select multiple classes or ele

[jQuery] Re: quick question, selecting dynamic elements

2007-11-30 Thread leepowell
Your selector is still incorrect, this this instead: $("ul#specialsNav li a").click( function(){ var whichID = $(this).attr("id").replace(/_a_/, ""); $("#" + whichID).toggle(); return false; }); jvittetoe2 wrote: > > > here is my code.

[jQuery] Re: How do I convert an Array to a Map-Object?

2007-11-28 Thread leepowell
Hi Ben, You can use the extend function: $.extend(arr1, arr2); arr2 is now part of arr1. The difference comes because you are dealing with 2 object literal arrays (objects), and as such have to handle them as objects. Regards Lee benjamin_p wrote: > > > Hi, > > I'm trying to use the $.ge