Menu icon Foundation

My Posts

No Content

My Comments

Michael Fillier commented on herrreiprich's post about 5 years

Since you can technically chain reveals, Roxanne's code would close ALL reveals on the page. I have forked Wing-Hou's Pen: http://codepen.io/michaelfillier/pen/LagCf?editors=101

 $('a.close-reveal-modal-button').click(function(){
  $(this).parent('reveal-modal').foundation('reveal', 'close');
});

(I prefer the class name .close-reveal-modal-button personally, but you should use the class that you assign to the button.)

Posts Followed

No Content

Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on herrreiprich's post about 5 years

Since you can technically chain reveals, Roxanne's code would close ALL reveals on the page. I have forked Wing-Hou's Pen: http://codepen.io/michaelfillier/pen/LagCf?editors=101

 $('a.close-reveal-modal-button').click(function(){
  $(this).parent('reveal-modal').foundation('reveal', 'close');
});

(I prefer the class name .close-reveal-modal-button personally, but you should use the class that you assign to the button.)

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content