[jQuery] Re: Unable to select input by value with variable

2008-09-22 Thread Robert
iwasclicked is a variable wich is way you have to do: $('[EMAIL PROTECTED]"+iwasclicked+"]') skankster napisaƂ(a): > Hello, > > I have a form with lots of radio buttons that all have the same name. > I want to select the one that was clicked by its value. What I am > doing is this: > > > $(docum

[jQuery] Re: Unable to select input by value with variable

2008-08-22 Thread skankster
I am sorry about this soliloquy. I found out that I don't need any variable at all to accomplish what I wanted to. I could select the object I needed to modify using parent and find: if ($(this).attr('checked')) { $(this).parent().parent().find('.classOne, .classTwo).fadeIn('slow'); Reg

[jQuery] Re: Unable to select input by value with variable

2008-08-22 Thread skankster
Ok, I solved the issue doing this: $(document).ready(function() { $('input[name="weAreAllCalledTheSame"]').click(function () { if ($(this).attr('checked')) { iwasclicked = "[EMAIL PROTECTED]" + $ (this).attr('value') + "]"; alert ($