[jQuery] Re: Help getting elements name.

2009-09-02 Thread gilberto.ramosoton
My radio buttons dont have the same name because the other programmer used different names to call them singularly because of some issue with IE 6 & 7. Ok What would like to have is the radio button's name, the one that got clicked, how could i return something to use with GetElementByName,

[jQuery] Re: Help getting elements name.

2009-09-02 Thread Charlie Griefer
$('input:radio').click(function() { alert(this.name); }); But... as radio buttons, wouldn't they all have the same name? In any event, 'this' (or the jQuery $(this)) will give you a hook into the element that triggered the click. On Wed, Sep 2, 2009 at 12:44 PM, gilberto.ramoso...@gmail.com < gi

[jQuery] Re: Help getting elements name.

2009-09-02 Thread gilberto.ramosoton
Great, thanks. On Sep 2, 4:20 pm, MorningZ wrote: > "because the other programmer > used different names to call them singularly because of some issue > with IE 6 & 7" > > technically he *created* an issue with IE since the radio buttons are > not grouped so that the user can only select one in

[jQuery] Re: Help getting elements name.

2009-09-02 Thread MorningZ
"because the other programmer used different names to call them singularly because of some issue with IE 6 & 7" technically he *created* an issue with IE since the radio buttons are not grouped so that the user can only select one in the bunch of them (if that's what you want, but you don't make