Ⓙⓐⓚⓔ schrieb:
> $(document).ready(function() {
> $("a.trigger").click(function(){
> $(this.hash).css({background: "red" })
> // right here the chain can keep on chaining....
> and no local or (GLOBAL) variables!
> });
> });
Yes, yes, yes, thanks Jake!
$(function() {
$("a.trigger").each(function() {
var targetDiv = $(this.hash);
targetDiv.css({background: "red"});
});
});
(hiding behind the next corner)
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/