Created
August 15, 2016 07:14
-
-
Save AnkurVyas-BTC/8905c2143d86377fbaf4a45756479d0d to your computer and use it in GitHub Desktop.
Before and after callbacks for the 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, | |
beforeTagAdded: function(event, ui){ | |
// Do something special as you want | |
} | |
afterTagAdded: function(event, ui){ | |
// Do something special as you want | |
} | |
beforeTagRemoved: function(event, ui){ | |
// Do something special as you want | |
} | |
afterTagRemoved: function(event, ui){ | |
// Do something special as you want | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment