Hi Ricardo,
Although I escaped the brackets, my alert is still displaying
"Undefined" for the value of radio buttons:
alert($('input:radio[name=field_submcategory\\[value\\]]:checked').val
());
could it be something else?
Thanks,
On Jan 26, 3:06 pm, Ricardo Tomasi <[email protected]> wrote:
> I think you have to escape the brackets:
>
> $('input:radio[name=field_submcategory\\[value\\]]:checked').val()
>
> On Jan 26, 3:37 pm, LoicDuros <[email protected]> wrote:
>
> > Hi,
>
> > I have a set of radio buttons with name="field_submcategory[value]" I
> > want to figure out what value has been selected, even after the user
> > hits refresh (so .change won't work). I've tried this but the alert I
> > get is always undefined, independently from what button is checked:
> > alert($('input:radio[name=field_submcategory[value]]:checked').val());
>
> > Thanks!