Johannes Theile schrieb:
> Hi Klaus,
> thanks for your effort. I tried your code and it works. But, there still is
> a problem.
> 
> When I click one of these links it only outputs the query parameter of the
> first link. No matter which link I click I always get the value first one.
> 
> Any way to change this?
> 
> Regards,
> Johannes

I was using attr in my example, which only returns the value of the 
attribute of the first matched element. It was a very simple example 
just to show how to use it.

It seems that you need something like this:

$('a').click(function() {
     var params = $.query(this.href);
     alert(params);
});


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to