TrinityTuts Tips

Hide specific div with same class jquery

If you have multiple div’s with same class and you wan’t to show or hide specific div using jQuery you can use this code.

If you want to count no of time same class called

jQuery(".myClass").length

If you want to show or hide specific div use this

jQuery(".myClass").eq(0).hide();

🙂