how can i call element by using this in jquery

how can i call element by using this in jquery im doing loop each loop have div have 2 buttons play and pasue i want to hide play when i press play and show pause

    $("#play").click(function(){
   
    $(this).$("#play").css("display", "none");
    $(this).$("#pause").css("display", "block");
  });

  $("#pause").click(function(){
    $(this).$("#pause").css("display", "none");
    $(this).$("#play").css("display", "block");
    
  });

99 thoughts on “how can i call element by using this in jquery”

Leave a Comment