donboe — 2013-10-30T09:37:05-04:00 — #1
On a page I'm working on I have a 50% transparant mask that has as property display: none. I furthermore have 4 buttons on that page. I would like the mask to fade in after one of those buttons is clicked, but it should only happens one time. How can I do that?
stevenhu — 2013-10-30T18:31:18-04:00 — #2
pullo — 2013-11-04T02:35:34-05:00 — #3
jQuery has a method (aptly named
.one()), which is executed once per element per event type.
Maybe this will help?