php - how to save acf_form using ajax without page refresh -


i have theese 3 acf_form. want show these form 1 one want save every form on button click through ajax without page refresh. right it's refreshing page whenever update. show through display none & block using js.

<div class="setupnew">             <h2>setup deals attract new clientele</h2>             <p>example: buy $15 $30 services</p>             <a href="javascript:void(0)"><p id="newdealstxt">[click here setup] </p></a></div>             <?php acf_form($args =  array(                                           'post_id' => $post_id,                                           'field_groups' => array(2029),                                           'form_attributes' => array(                                               'id'=>'newdeals'                                            ),                                       ));  ?>             <div class="setupex">             <h2>setup deals bring in clientele during nonpeak hours</h2>             <p>example: buy $15 $30 services tue-thur 9am - 2pm.</p>                       <a href="javascript:void(0)"><p id="exdealstxt">[click here setup]</p></a></div>             <?php  acf_form($args =  array(                                           'post_id' => $post_id,                                           'field_groups' => array(2047),                                           'form_attributes' => array(                                               'id'=>'exdeals'                                           ),                                       ));  ?>             <div class="setupfb">             <h2>setup $5 off coupon increase testimonials , sharing</h2>             <p>example: leave testimonial , $5 off next service.</p>             <a href="javascript:void(0)"><p id="fbdealstxt">[click here setup] </p></a></div>              <?php  acf_form($args =  array(                                           'post_id' => $post_id,                                           'field_groups' => array(2123),                                           'form_attributes' => array(                                               'id'=>'fbdeals'                                           ),                                       ));  ?>             <a href="javascript:void(0)"><h2 id="backk">back << </h2>  </a> 


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -