Skip to content

Instantly share code, notes, and snippets.

@iamricard
Forked from lmuntaner/gist:283a71f470422a12078e
Last active March 23, 2020 20:25
Show Gist options
  • Save iamricard/8f863d0582824e6d3026 to your computer and use it in GitHub Desktop.
Save iamricard/8f863d0582824e6d3026 to your computer and use it in GitHub Desktop.
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
<div class="container" style="margin-top: 50px;">
<button class="btn btn-primary hello-button">Do Something</button>
</div>
<script type="text/javascript">
$('.hello-button').on('click', function () {
alert('hello world')
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment