I am working on a news page that has a Show/Hide script implemented to handle long content. However, the current script is applied globally to all content and I would like it to only apply to one specific element or the nearest element.
Here is the current script:
$(document).ready(function(){
$(".btn1").click(function(){
$("p.esl").hide();
});
$(".btn2").click(function(){
$("p.esl").show();
});
});
Website:
P.S. I am still learning jQuery so my skills are quite limited.