1<script>
2 $(document).ready(function(){
3 $('#MyButton').click(function(){
4 CapacityChart();
5 });
6 });
7</script>
8
9<input type="button" value="Capacity Chart" id="MyButton" >
1var x = document.getElementById('container');
2//click can also be antother event
3x.addEventListener('click', function (x) {
4 console.log('hi');
5});
6