Validate an ISIN (International Securities Identification Number).
Option | Equivalent HTML attribute | Type | Description |
---|---|---|---|
message |
data-bv-isin-message |
String | The error message |
ISIN | Result |
---|---|
US0378331005 | |
AU0000XVGZA3 | |
GB0002634946 | |
US0378331004 | |
AA0000XVGZA3 |
<form id="isinForm" class="form-horizontal">
<div class="form-group">
<label class="col-lg-3 control-label">ISIN</label>
<div class="col-lg-5">
<input type="text" class="form-control" name="isin" />
</div>
</div>
</form>
<script>
$(document).ready(function() {
$('#isinForm').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
isin: {
validators: {
isin: {
message: 'The value is not valid ISIN'
}
}
}
}
});
});
</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.