The default value is 'on'. You need to assign a value to each radio;
also the selector you're using selects all of the radios without
distinguishing between selected or not.
Try this to experiment with:
$(':radio.star').click(function(){
console.log($(this).val());
});
Your html should
Thanks for the quick reply, i tried adding a value and it works
thank you :)
On 20 jun, 20:07, mkmanning wrote:
> The default value is 'on'. You need to assign a value to each radio;
> also the selector you're using selects all of the radios without
> distinguishing between selected or not.
>
>
2 matches
Mail list logo