Bind an event handler to the "change" JavaScript event, or trigger that event on an element. code example
Example: jquery click event
$('#selector').on('click',function(){
//Your code here
});
$('#selector').on('click',function(){
//Your code here
});