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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -