This is not new but I would like it to be posted on my site. So here is the jQuery code to trigger the event when user selects the HTML option box.
<script type="text/javascript">
jQuery(document).ready(function($){
$("#yourOptionID").change(function (){
var selVal = $("#yourOptionID").val();
if(selVal != null){
//Add your code
}
else {
//Add your code
}
});
});
</script>