getting the value of daterangepicker bootstrap

前端 未结 7 1051

Hi im new to using javascript and encountered a problem while using daterangepicker bootstrap. I manage do implement this demo that i got but I am stuck at getting the value of

7条回答
  •  梦毁少年i
    2021-01-30 09:57

    Simple, get direct the inputs range:

    $(document).ready(function(){
    
        $('#reportrange span').bind('DOMSubtreeModified', function(e){
            alert('New value is: '+$('input[name=daterangepicker_start]').val()+' to '+$('input[name=daterangepicker_end]').val());
        });
    
    })
    

提交回复
热议问题