Override the onclick of the button instead of the checked attribute.