Answers for "selectpicker get selected value"

2

js how to get selectpicker value

$(document).on('change', '#input_id', function() {
    var selected = $('#input_id').val();
});
Posted by: Guest on February-20-2021
0

datepicker get selected date

$(function() {
    $("#datepicker").datepicker();
    
    $("#datepicker").val();
    
    $("#datepicker").on("change",function(){
        var selected = $(this).val();
        alert(selected);
    });
});
Posted by: Guest on January-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language