javascript - Multi Step Form using fieldset -


i have code in html , javascript using fieldset change step form. want in every fieldset has own form tag, when submitted in 1st fieldset changing 2nd fieldset

here's html code

<div class="formhandler"> <fieldset>     1      <form>         <input type="text">         <?php              echo form_button('previous', 'kembali', array('class'=>'previous action-button'));             echo form_submit('submit', 'next', array('class'=>'next action-button'));          ?>     </form> </fieldset>  <fieldset>     2      <form>         <input type="text">         <?php              echo form_button('previous', 'kembali', array('class'=>'previous action-button'));             echo form_submit('submit', 'next', array('class'=>'next action-button'));          ?>     </form> </fieldset> 

please me solve this

you can each fieldsets call custom ajax request javascript depending on step, validating fields on client-side.

because if not use ajax, page refresh , lose step.


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 -