I have four radio buttons grouped togather as 'vehicle' what I want to do is when a user clicks on submit, I want my JQuery to check if the user has atleast chosen one of the radio buttons if not, I want them to get an alert message .
I have tried the following code which did not work, as it is always returning false;
Any help would be highly appriciated.
if( ! $('input:radio:selected', this).length > 0)
nextMove = false;
alert('Please choose a vehicle');