Validators / issn

Edit on Github

Validate an ISSN (International Standard Serial Number).

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

Example

ISSN Result
0378-5955
0024-9319
0032-1478
0032-147X
<form id="issnForm" class="form-horizontal">
    <div class="form-group">
        <label class="col-lg-3 control-label">ISSN</label>
        <div class="col-lg-5">
            <input type="text" class="form-control" name="issn" />
        </div>
    </div>
</form>
<script>
$(document).ready(function() {
    $('#issnForm').bootstrapValidator({
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            issn: {
                validators: {
                    issn: {
                        message: 'The value is not valid ISSN'
                    }
                }
            }
        }
    });
});
</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.