Auto-check checkbox from input and avoid value change
Some examples