Detect with JQuery when a select changes Detect with JQuery when a select changes jquery jquery

Detect with JQuery when a select changes


The problem is that the select are created dynamically, then you need to use .on()

try this:

         $(document).on('change','#won',function(){               alert("PROBANDO");          });


This should work, be sure you did not forget $(document).ready(function() {

$(document).ready(function() {      $('#won').change(function(){        alert( $(this).find("option:selected").attr('value') );           }); });