How to read value from daterangepicker?
I have this daterangepicker runs on my local PHP site. Here is the code for HTML part <form role="form" class="form-inline" method="post" action=""> <div id="reportrange" class="form-control"> <i class="fa fa-calendar"></i> <span></span> <b class="caret"></b> </div> <button class="btn btn-white" type="submit">Search</button> </form> Javascript part: $('input[name="daterange"]').daterangepicker(); $('#reportrange span').html(moment().subtract(29, 'days').format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY')); $('#reportrange').daterangepicker({ autoApply: true, format: 'MM/DD/YYYY',
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.