Skip to content

Instantly share code, notes, and snippets.

@Oclemy
Last active February 23, 2017 12:34
Show Gist options
  • Save Oclemy/c974de717de7997b63ec92cedb8d9329 to your computer and use it in GitHub Desktop.
Save Oclemy/c974de717de7997b63ec92cedb8d9329 to your computer and use it in GitHub Desktop.
SemanticUI Button Click
<button id="BTN_ALLOW_ID" class="ui primary button">
Allow
</button>
<button id="BTN_DISMISS_ID" class="ui button">
Dismiss
</button>
$(document).ready(function() {
$(BTN_ALLOW_ID).click(function() {
alert("Allowed Clicked");
});
$(BTN_DISMISS_ID).click(function() {
alert("Dismiss Clicked");
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<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