Smythu Smythu - 2 years ago 129
jQuery Question

jQuery 3 - Show and Hide

I have 3


  1. Has a next button

  2. Has a back and a next button

  3. Has a back and submit button


$('.next').click(function() {
//hide parent and show next

$('.back').click(function() {
//hide parent and show previous

The 2nd page just appears for a few milliseconds and then goes back to the first one.. is it deprecated?

Answer Source

You could be submitting the page try preventing the event.

  //hide parent and show next 

  //your othe codes

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download