javascript - Staged Donation Form in Bootstrap -


i have been trying create staged donation form in bootstrap, use forward , backward buttons move part of same form. have nice indicator @ top, denoting step of completion at. staged donation forms increases donation rates average of 4.8%, have it.

i found tutorial online , it's nice, has problems hope can me fix (code @ link): enter image description here

1) if placed in column side side another, glitches out when next button pressed, shifting content down row.

2) unable apply css min-height attribute , have hold true after next button pressed. keep each part of form same height , button @ bottom in same place.

3) not include javascript button.

4) don't need form validation, it's useless bulk.

thanks guys can give me, know it's quite lot of ask in 1 question, js not specialty , it's pro bono work charity.

for button, have create new button go previous step , add html 2nd , 3rd steps. can duplicate nextbtn functionality , reuse previous button (but can remove input validation since it's not necessary previous button).

here's button code:

<button class="btn btn-primary prevbtn btn-lg pull-left" type="button">back</button> 

and javascript:

allprevbtn.click(function(){       var curstep = $(this).closest(".setup-content"),           curstepbtn = curstep.attr("id"),           prevstepwizard = $('div.setup-panel div a[href="#' + curstepbtn + '"]').parent().prev().children("a");            prevstepwizard.trigger('click');   }); 

working example


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -