jquery fadeout current div, find next div and fade in or find last and fade in
问题 I have div class called .stage which is a stage of a questionnaire <div class="stage"> <div class="next">Next</div> </div> <div class="stage"> <div class="back">Back</div> <div class="next">Next</div> </div> <div class="stage"> <div class="back">Back</div> <div class="next">Next</div> </div> <div class="stage"> <div class="back">Back</div> </div> I am trying to write some compact jQuery that if you select next it closes the current stage and opens the next stage or if you click back it closes