The custom validate() function in this page rejects any rating that's not between 1 and 10. For example, if you type 0 and click outside the box, you'll see an alert() message.