Created
May 15, 2015 04:03
-
-
Save srinathweb/63d8a752c6fb872a25f4 to your computer and use it in GitHub Desktop.
distroy popover
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
| <script> | |
| $("#test-popover").on("click", function(){ | |
| var anonymous_nickname = $("#id_nickname").val(); | |
| if (anonymous_nickname.length <= 2) { | |
| $('#id_nickname').popover('show'); | |
| } else { | |
| $('#id_nickname').popover('destroy'); | |
| } | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment