Quote OP:
"I added display:none; to the radiobutton to style it my way ,and the validation doesn't work if the element is hidden or display is none"
If that's the case, enable validation on hidden elements using the ignore
option.
$("#ratingform").validate({
ignore: [] // sets the option to ignore nothing. Hidden elements will be validated
});