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