Hi Adriano,
That's really nice of Ana .
I tried it out, at this point we are trying to get an 'error' warning just like other field when people forget to give a ranking. In types I filled in the ranking is required, but because of the javascript this is not working anymore. I'm sorry to say the the new code you provided did not solve this, I can still fill in the review without a rating.
Also I have to say that other problems you solved are back, like:
- the value of the input radio is no longer the 'title' anymore, so when people now hover the stars they don't see any strange title anymore;
So, just from that point of view the other code was better.
Ofcourse we can go with the second best solution, that we fill in a standard value of 3 stars for example (which is possible with your previous code), but if people forget the rating in this case the 3 star rating is there, but if they ment a 5 star rating that's worth nothing. So better would be not to set a predefined rating, and give people a warning to forgot to fill in a rating.
Kind regards,
Willem