jquery - can some one help to show the next div using the same calss -
<span class="s1">show me</span> <div class="show">hello world</div> <span class="s1">show me</span> <div class="show">hello world</div>   i tried not working
jquery(document).ready(function ($) {     $(".s1").click(function () {         $(this).next('div').slidetoggle();     }); });   if click s1 thei need show next div
i prefer add target selector @ <span> can check demo here
Comments
Post a Comment