Solved

modal.js doesn't close on click x

Posted on 2014-12-02
5
174 Views
Last Modified: 2014-12-02
I am using the jquery modal.js file and when I click on the x the box doesn't close.
Is something wrong or covering the x.
You can see my file here:

http://parkplaceofbelvidere.com/Contact_Us.html
0
Comment
Question by:rivkamak
  • 3
5 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40477370
And how do we get the modal?
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 250 total points
ID: 40477380
In .modal-body {} you are moving the content up above the close button with top:-20px
0
 
LVL 82

Expert Comment

by:leakim971
ID: 40477382
add this in your document.ready block or in a script tag at the end of your body tag

$(".modal button.close")
    .css("z-index",1)
    .click(function() { 
          $(this).closest(".modal").fadeOut("slow");
    });

Open in new window

0
 
LVL 58

Expert Comment

by:Gary
ID: 40477403
To
.modal-header .close {}
add
z-index:1
0
 
LVL 10

Accepted Solution

by:
Hans Langer earned 250 total points
ID: 40477476
in your contact-form.css
delete the top: -20px

.modal-body {
  position: relative;
  padding: 20px;
  /* top:-20px; */ <--- comment or delete this style
}

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question