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!