Skip to content

6- Interactive Rating Component - Fix

No due date 0% complete

feedback:
"This is getting there but you've done something super strange and bad with the js! You're setting checked on focus!! Let radios work how they work. This literally needs a few lines of js nothing else.

It just needs a submit listener on the form (NOT a click!). Then you get the rating from either form.rating.value or this.rating.value. If there'…

feedback:
"This is getting there but you've done something super strange and bad with the js! You're setting checked on focus!! Let radios work how they work. This literally needs a few lines of js nothing else.

It just needs a submit listener on the form (NOT a click!). Then you get the rating from either form.rating.value or this.rating.value. If there's a rating show the result and populate the you chose text.

Note the form fieldset doesn't usually have name, tabindex or aria-required. It doesn't need a role either as it's already a fieldset. You would just add required to one of the inputs."

Loading