0
Hello, I am programming a table with dates, and to filter I am using an input data range with 2 mini Calendar. I would like to know how to send and use this information without using Submit :)
<div class="calendar left">
<div class="daterangepicker_input">
<input class="input-mini form-control" type="text" name="daterangepicker_start" value="" />
<i class="fa fa-calendar glyphicon glyphicon- calendar"></i>
<div class="calendar-time">
<div></div>
<i class="fa fa-clock-o glyphicon glyphicon-time"></i>
</div>
</div>
<div class="calendar-table"></div>
</div>
<div class="calendar right">
<div class="daterangepicker_input">
<input class="input-mini form-control" type="text" name="daterangepicker_end" value="" />
<i class="fa fa-calendar glyphicon glyphicon-calendar"></i>
<div class="calendar-time">
<div></div>
<i class="fa fa-clock-o glyphicon glyphicon-time"></i>
</div>
</div>
<div class="calendar-table"></div>
</div>
<div class="ranges">
<div class="range_inputs">
<button class="applyBtn" disabled="disabled" type="button"></button>
<button class="cancelBtn" type="button"></button>
</div>
</div>
</div>
I would like to pass the daterangepicker_right and the daterangepicker_left, thank you
If you want to send PHP without refreshing the page, you will have to use AJAX.
– Sam
There’s something more specific for me to look at in Ajax?
– matheus gomes
There is extensive material on AJAX here on the site. Try to do a search for AJAX in the search field. Good luck!
– Sam
Okay, thank you very much Sam!!! :)
– matheus gomes
You use a . onChange() to call an ajax request.
– Vinicius De Jesus