Answers for "how to disable time option in select jquery"

0

how to disable time option in select jquery

$('#fromtime').on('change', function(){
    var totimeValues = [];
    
    var fromTime = $(this).val();

    $('#totime option').filter(function() {
        return $(this).val() <= fromTime;
    }).prop('disabled', true);

    
});
Posted by: Guest on November-19-2020

Code answers related to "how to disable time option in select jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language