Created
August 15, 2016 07:12
-
-
Save AnkurVyas-BTC/6d6dd4832b2bbced7c1b473a8dc0021f to your computer and use it in GitHub Desktop.
On limit exceeded tag it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(“#tags”).tagit({ | |
availableTags: [‘ruby’, ‘rails’,’range’, ‘ready’], | |
tagLimit: 2, | |
onTagLimitExceeded: function(event, ui){ | |
alert('You cannot add more than 2 tags!') | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment