This is mostly working for me. Nice job. Just one issue that I'm having: when I click on one image in the gallery, the popup opens, but it also scrolls back up to the top of the page. I need it to stay in one place. Any ideas on this?
Thanks in advance.
thePixelPixie () - 6 years ago - Reply 0
my files are not working and due to that I cannot use the above code
help me plz to get ride of it!
shabbir () - 7 years ago - Reply 0
JS:
<script src="https://code.jquery.com/jqu..."></script>
<script>
$(document).ready(function() {
$(".thumbnail").click(function(){
$(".modal-body").empty();
var title = $(this).parent("a").attr("title");
$(".modal-title").html(title);
$($(this).parents("div").html()).appendTo(".modal-body");
$("#myModal").modal({show:true});
});
});
</script>
This work.
Staszekk PL () - 7 years ago - Reply 0
The JS is definitely failing here.
property-modal.js:1 Uncaught ReferenceError: $ is not defined
Suggestions on how to fix this? I am sure that it is really simple if you are a javascript developer.
tazizhere () - 8 years ago - Reply 0
you have not included JQuery, just paste this at your <head>
<script src="https://code.jquery.com/jqu..." integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
Jeiemgi () - 7 years ago - Reply 0