onchange function jquery code example
Example 1: jquery onchange
$("input").change(function(){
alert("The text has been changed.");
});
Example 2: value change event jquery
$("#input").change(function(){
alert("The text has been changed.");
});
Example 3: click select option to update div jquery
$('#choose').change(function(event) {
$.post('info.php', { selected: $('#choose').val() },
function(data) {
$('#update').html(data);
}
);
});