[jQuery] Re: adding a class to the label of a checked radio button

2007-12-06 Thread sperks
I thought I'd update the community with the working code. In order to get this working in Safari I took advise from the following thread and created a trigger on the label as well as the input element. http://groups.google.com/group/jquery-en/browse_thread/thread/149c4f8a32a846a2/ Here's my fina

[jQuery] Re: adding a class to the label of a checked radio button

2007-12-05 Thread sperks
scratch the append( wrote: > The site's live, (http://deliciouslivingmag.com/) and I got the search > tabs working beautifully, but forgot to check Safari after the final > change. > G. > Does anyone know if / how I can get Safari to understand that I'm > clicking on the radio even when I'm cl

[jQuery] Re: adding a class to the label of a checked radio button

2007-12-05 Thread sperks
The site's live, (http://deliciouslivingmag.com/) and I got the search tabs working beautifully, but forgot to check Safari after the final change. G. Does anyone know if / how I can get Safari to understand that I'm clicking on the radio even when I'm clicking on the label (assuming that's th

[jQuery] Re: adding a class to the label of a checked radio button

2007-12-03 Thread Karl Swedberg
Hi sperks, I'm pretty sure you can do that by changing this line ... $('div#searchLabels label.attr("for","' + selectedInput + '")').addClass("selected"); to this ... $('#searchLabels label[for=' + selectedInput + ']').addClass("selected"); Instead of returning the attribute itself, yo