v0.5.3 is released on 2014.11.05!

rtn validator

Validate a RTN (Routing transit number)

Validators

Improve it on Github

Options

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

Example

RTN Result
011103093
067014822
211274450
211370545
054001725
011400071
031201360
026013673
021302567
053902197
036001808
011600033
<form id="rtnForm" class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-3 control-label">RTN</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" name="rtn" />
        </div>
    </div>
</form>
$(document).ready(function() {
    $('#rtnForm').bootstrapValidator({
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            rtn: {
                validators: {
                    rtn: {
                        message: 'The value is not valid RTN'
                    }
                }
            }
        }
    });
});

Related validators

The following validators might be useful to you: