JavaScript en seleccionado

//you can use "input" for the same result
your_var = document.getElementById('#your_dom_id');
your_var.addEventListener('input', function(){
  //your statement
}
Zaini_Nijar