When I try to click a button with the SimpleModal Plugin it gives me
the following error
$('#basicModalContent').modal is not a function

instead of showing the hidden div.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="../jquery.js"></script>
<script type="text/javascript" src="../jquery.simplemodal-1.0.1.js"></
script>
<script type="text/javascript">
$(document).ready(function () {
        $('#basic').click(function (e) {
                e.preventDefault();
                $('#basicModalContent').modal( {
                        overlay: "75",
                        close: false
                });
        });

});
</script>
</head>

<body>

<form action="#" method="post" name="tester">
<input type="button" value="Submit" name="basic" id="basic" />
</form>

<div id="basicModalContent" style="display:none">You should see this
text</div>
</body>
</html>

Reply via email to