Send input data without Ubmit

Asked

Viewed 163 times

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

  • 1

    If you want to send PHP without refreshing the page, you will have to use AJAX.

  • There’s something more specific for me to look at in Ajax?

  • There is extensive material on AJAX here on the site. Try to do a search for AJAX in the search field. Good luck!

  • Okay, thank you very much Sam!!! :)

  • You use a . onChange() to call an ajax request.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.