Skip to content

Commit f0a7088

Browse files
committed
update Readme.md
1 parent 6312b4a commit f0a7088

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ I like this plugin a lot but in one of my projects, I need to validate email add
55

66
Many thanks to its author. Great job !
77

8+
## Easy to use
9+
It's just a new option "pattern"
10+
11+
var yourRegex = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;// Email address
12+
$('#tags').tagsInput({
13+
width: 'auto',
14+
pattern: yourRegex // default: false
15+
});
16+
17+
See more in example.html or [View Demo](http://mrhieu.github.io/jQuery-Tags-Input-with-Validation/demo)
18+
819
# jQuery Tags Input Plugin
920

1021
Do you use tags to organize content on your site?

0 commit comments

Comments
 (0)