Thanks ricardobeat.  A little bit more info here. The code I put
worked in Firefox.  its IE7 that was giving me the problem.  I know
about the @ sign being deprecated but I still find at times it wont
work without the @ after input. Either way thanks for the help.  I
never thought about using the filter.

On Sep 29, 4:34 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> The '@' at the start of an attribute name has been deprecated. Try
> this:
>
>  $('input[name=radCateg]').click(function(){
>    var s = $(this).filter(':checked').val();
>    alert(s);
>  });
>
> or this:
>
>  $('input[name=radCateg]').click(function(){
>    if $(this).is(':checked') alert(this.value);
>  });
>
> - Ricardo
>
> On Sep 29, 7:15 pm, JimD <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi all I know this is pretty basic stuff and discussed before but Im
> > having problems simply getting the value of a radio button that is
> > checked in a group.
>
> > For example in the code below why is 's' blank?
>
> > // get value for checkbox or radio button that is checked
> >   $("[EMAIL PROTECTED]'radCateg']").click(function(){
> >     var s = $("[EMAIL PROTECTED]'radCateg']:checked").val();
> >     alert(s);
> >   });- Hide quoted text -
>
> - Show quoted text -

Reply via email to