I'm trying to call a form in a pop-up window using a link in wordpress using approximately this code:

<a href="#myDiv" class="html5lightbox" data-width=350 data-height=320>тут ссылка вызывающая окно</a> 

Form Code:

 <div id="myDiv" style="display:none;"> <form> Тут сама форма </form> </div> 

All scripts are connected. When you click on a link, it opens not a form, but a reduced window of the page (with all its contents) with which the window is called.

How to call only the form, dressed in a Div ?

Read the instructions for the script offsite: instructions for html5lightbox

Maybe I missed something?

    1 answer 1

    Perhaps your problem is a syntax error? You have written

     <div="myDiv"... пропущено id. 

    Little information to check. As a frontend developer, I would not advise you to use such plugins. Pay modal window for the site - it sounds awful. Look in the direction of simple free and complete documentation of solutions, such as http://fancyapps.com/fancybox/

    • html5lightbox - absolutely free script! In the above written code, just hurried (already corrected). Considering what you thought, the window would not work at all, but it opens, but not with what is required. - cooledit