codehaven - php snippets - coding help
Generic filters
Exact matches only
  • Jquery index – Show content with same index

    15th April 2014

    Jquery Misc

    jquery icon

    If you have 20 pictures (class of .picture) and 20 hidden items (class of .addcomment), then when you click on the 3rd picture, then it will show the third .addcomment.
    This is instead of naming 20 different classes.

    Was this code snippet helpful?