Quantcast
Channel: Kit Menke's Blog » JavaScript
Viewing all articles
Browse latest Browse all 10

Knockout Validation: Multiple email addresses

$
0
0

A simple rule for validating an observable which could contain multiple email addresses.

Assuming you have an observable like self.emailTO = ko.observable('');, you would just extend it to have self.emailTO.extend({ multiemail: true });. Use it with the required validator if you want at least one email address.

Requires Knockout.jsKnockout Validation, and jQuery.


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images