Javascript modal box to show a form through php
<p>I want to add a modal window (created with css and javascript) to pop-up a form when a user clicks "add quote" button on one of my php script.
I have created a form in q1.html file, with required div settings. There is a modal.css file to hide/unhide form. There is modal.js file to make the modal box out of this html and css. This html file on its own shows a poping up modal window with it's own "show window" button.</p>

<p>Now, I want to include this html file in one of the php script. If I use a link with an anchor tag pointing to q1.html file, it opens up in an entire new window. That is of no use to use a poping up modal form.</p>

<p>If I use "include('q1.html') file in php, the form stops working. The modal.css applies to the main page where I'm including this file. SO, how do I do it?</p>

<p>I think the problem comes from DOM, as modal.js file asks for elements in html file. But I don't understand how to resolve it.
I was searching on Internet, and all of it returns jquery solutions. At this point I don't want to use jqueary, as I want to learn javascript first.</p>
