Last active
February 23, 2017 12:34
-
-
Save Oclemy/c974de717de7997b63ec92cedb8d9329 to your computer and use it in GitHub Desktop.
SemanticUI Button Click
This file contains 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
<button id="BTN_ALLOW_ID" class="ui primary button"> | |
Allow | |
</button> | |
<button id="BTN_DISMISS_ID" class="ui button"> | |
Dismiss | |
</button> |
This file contains 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
$(document).ready(function() { | |
$(BTN_ALLOW_ID).click(function() { | |
alert("Allowed Clicked"); | |
}); | |
$(BTN_DISMISS_ID).click(function() { | |
alert("Dismiss Clicked"); | |
}); | |
}); |
This file contains 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 src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> |
This file contains 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
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/components/button.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment