jquery on chnaged code example
Example 1: click select option to update div jquery
$('#choose').change(function(event) {
$.post('info.php', { selected: $('#choose').val() },
function(data) {
$('#update').html(data);
}
);
});
Example 2: document.on chenage jquer
$(document).on('change', 'input', function() {
// Does some stuff and logs the event to the console
});