jquery-ui-7665

by bchiasson

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css">
<script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
<input type="checkbox" id="option_1" value="1" />
<label for="option_1">Option 1</label>
<br />
<input type="checkbox" id="option_2" value="2" />
<label for="option_2">Option 2</label> <!-- moving the mouse a little over this label does cause the checkbox to become active -->
<br />
<button>Option 2</button>

JavaScript

$('#option_1').button().click(function(){
    console.log('ui button click registered');
});

$('button').click(function(){
    console.log('click registered');
});