Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8231891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:38:45+00:00 2026-06-07T17:38:45+00:00

I am using Zurb Foundation on a site, and I was trying to get

  • 0

I am using Zurb Foundation on a site, and I was trying to get a modal window working with the Reveal JS Plugin. I see that you can add a dismissModalClass option to the parameters that you pass to reveal() that will attach an event handler to a button, etc. that will close the modal on click.

Is there a way to manually close the modal window with Reveal? I would like to be able to attach a close method to different custom events.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:38:46+00:00Added an answer on June 7, 2026 at 5:38 pm

    You could simply trigger the click dynamically in an other event by doing something like this

    $('.close-reveal-modal','#myModal').click()
    

    UPDATE

    After looking through the source code of the plugin, it looks like they bind an event to the modal element called reveal:close. So you can also do something like this

    $('.otherClose').click(function(){
        $('#myModal').trigger('reveal:close')
    })​
    

    Here is a fiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this plugin to show lightbox on a website http://www.zurb.com/playground/reveal-modal-plugin I want to
I'm using Foundation by ZURB and trying to get the nav bar to the
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
I am using Zurb's Orbit jQuery plugin to create a nested slider, that is,
I'm using the excellent Zurb plugin Orbit on my homepage, and I'm trying to
I am building a personal site using a Zurb Foundation template (blog) and I
I'm trying to make an page with tabbed content. I'm using foundation tabs (http://foundation.zurb.com/docs/tabs.php).
I am using Zurb Foundation and it works great for almost all the browser
I'm using the zurb-foundation gem, but it uses foundation 2 while foundation 3 came
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.