JQuery for button inside popup only work after refresh
-
I made a script for the button inside my popup.
If the button is clicked, it will close the popup and will scroll to the assigned anchor link.
My problem is, the script will not work on the first load, but after I refresh the page, the script will work.
Any ideas?
This is my code:
<script>
jQuery( document ).ready(function() {
jQuery(‘#bookbtn_loc_2’).on(‘click’, function(event){
jQuery(“a.da-close”).click();
jQuery(“#loc”).val(“Vakantiewoning Kastijd Kortessem”).change();
});
});
</script>The page I need help with: [log in to see the link]
The topic ‘JQuery for button inside popup only work after refresh’ is closed to new replies.