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
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.
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
3 matches
Mail list logo