Simple Modal
Simple Modal
Hi all. I'm rather new to jQuery so this might be a silly question. I'm using simpleModal.js on a page and it works great however, once I try to add options to the modal it no longer works.
Here's what I'm using now and it works successfully:
- <script type="text/javascript">
$(document).ready(function() {
$("#clicktest").click(function() {
$.getScript("../../javascripts/jquery_pi_simplemodal.js", function() {
// Chained call with no options
$("#video2009").modal();
});
});
});
</script>
If I try adding a width option it breaks...absolutely nothing happens:
- <script type="text/javascript">
$(document).ready(function() {
$("#clicktest").click(function() {
$.getScript("../../javascripts/jquery_pi_simplemodal.js", function() {
// Chained call with no options
$("#video2009").modal({
minHeight:400,
minWidth: 600
});
});
});
</script>
Any help on this would be greatly appreciated.
thank you!