Validators / imei

Edit on Github

Validate an IMEI (International Mobile Station Equipment Identity).

Option Equivalent HTML attribute Type Description
message data-bv-imei-message String The error message

Example

IMEI Result
35-209900-176148-1
35-209900-176148-23
3568680000414120
490154203237518
490154203237517
<form id="imeiForm" class="form-horizontal">
    <div class="form-group">
        <label class="col-lg-3 control-label">IMEI</label>
        <div class="col-lg-5">
            <input type="text" class="form-control" name="imei" />
        </div>
    </div>
</form>
<script>
$(document).ready(function() {
    $('#imeiForm').bootstrapValidator({
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            imei: {
                validators: {
                    imei: {
                        message: 'The value is not valid IMEI'
                    }
                }
            }
        }
    });
});
</script>

Comments

If you want to report a bug, please submit the issue on Github. Do NOT post the issue here.

For a general question or feedback, use the form below.