skip to Main Content

Why do wordpress Jquery only work after refresh

This is my code : <script type="text/javascript"> jQuery( document ).ready(function() { jQuery('#bookbtn_loc_1').on('click', function(event){ jQuery("a.da-close").click(); jQuery("#loc").val("B&B de fruithoeve Schalkhoven").change(); }); }); </script> I want to run this code when the button with id #bookbtn_loc_1 is clicked. But, this script only works…

VIEW QUESTION
Back To Top
Search