What would be stopping the jQuery scripts from being called?
-
I have installed the plugin and have a jQuery script that works fine if it’s inserted inline in the HTML.
I have a button with a class like so:
<button type="button" class="bookingbutton">Click here</button>
And my jQuery script appears like:
jQuery(document).ready(function( $ ){ $('.bookingbutton').click(function() { alert('a message'); });
But for some reason that I can’t fathom it doesn’t work. When I click the button it doesn’t even appear to attempt to run the jQuery.
What could be interfering here?
I have the exact same thing running fine on 2 other sites – I just can’t figure this one out.
To re-iterate, the jQuery works ok if inserted inline in the HTML, but I just can’t understand why the scripts inserted into the plugin UI don’t work in the same way?
What am I missing?
- The topic ‘What would be stopping the jQuery scripts from being called?’ is closed to new replies.