I am trying to experiment on creating something where you can rate by no. of stars. However, after I click on the rating I want and the number of stars has been printed out, I can still click on the stars and change the value. How can I stop all events after I click?
This is the jsFiddle demo of my problem:
You could use
.one[docs]. The event handler bound with this will only be executed once.