[Solved] How to open lightbox contact us form with onclick event


You can use jquery-ui to do this:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Modal Popup</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>

</head>
<body>
<!-- <button id="dialog_trigger">open the dialog</button> -->
<a href="#" id="dialog_trigger">open the dialog</a>
<div id="dialog" style="display:none;" title="Dialog Title"><iframe frameborder="0" scrolling="no" width="100%" height="100%" src="https://from100.wufoo.com/forms/sfzxgmx02j3w8g/"></iframe></div>
<script>
$( "#dialog_trigger" ).click(function() {
$( "#dialog" ).dialog( "open" );
});
$("#dialog").dialog({
    autoOpen: false,
    position: 'top' ,
    title: 'EDIT',
    draggable: false,
    width : 800,
    height : 770, 
    resizable : true,
    modal : true,
    open: function(){
            jQuery('.ui-widget-overlay').bind('click',function(){
                jQuery('#dialog').dialog('close');
            })
        }
});
$(".ui-dialog-titlebar").hide();


</script>
</body>
</html>

Change what you need in the code.

3

solved How to open lightbox contact us form with onclick event