nnattawat / flip

A lightweight jQuery plugin to make 3D card flipping animation
Other
624 stars 312 forks source link

JQuery flip $(...).flip is not a function #97

Open AlfredW0 opened 7 years ago

AlfredW0 commented 7 years ago

Hello, I'm having trouble to insert 2 JQuery plugins in .asp pages. For exemple, for the Jquery flip, I have an error message that say : $(...).flip is not a function. My .js files are well attached and the event javascript function is well included in. Also, that work perfectly on html test page.

Can you help please, I'm stuck, Thanks, Here is my code :

`

` `` `
`
epsilon42 commented 7 years ago

Another JavaScript library may be using '$' as a function/variable name.

Try replacing every instance of '$' with 'jQuery': <script> jQuery(function(){ jQuery(".flip").flip({ trigger: 'click' }); }); </script>

Or this might also work: <script> jQuery(function($){ $(".flip").flip({ trigger: 'click' }); }); </script>

Reference: https://api.jquery.com/jquery.noconflict/