programer.tips, another cool thing from @nghuuphuoc!

hex validator

Validate a hexadecimal number

Validators

Improve it on Github

Options

Option HTML attribute Type Description
message data-bv-hex-message String The error message
When setting options via HTML attributes, remember to enable the validator by setting data-bv-hex="true".

Related validators

The following validators might be useful to you: