What is failing in this simple code jquery? [closed]

The change event fires on the select element itself, not the option elements within it. Try this:

$(document).ready(function(){
    $("#combo1").change(function() {   
        if ($(this).val() == 'Egreso') {
            $("#monto").val("-");
        }
    })
});

Leave a Comment