The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
make your jQuery behave
this time I have a tip, i have been creating alot of mods recently with alot of jquery and keeping mods enabled and testing others sometimes resulted in a clash, also known as a jQuery conflict.
the easiest method for resolving these issues (that i use atleast) is to wrap my whole <script> here's an example, i have this script on my page: HTML Code:
<script type="text/javascript"> $(document).ready(function() { $('#someID').someThing(); }); </script> well it's simple wrap it up like so: HTML Code:
<script type="text/javascript"> jQuery.noConflict(); (function( $ ){ $(document).ready(function() { $('#someID').someThing(); }); })( jQuery ); </script> so prevent it from clashing from the start and wrap your code whenever you start HTML Code:
<script type="text/javascript"> jQuery.noConflict(); (function( $ ){ YOUR SCRIPT HERE HERE })( jQuery ); </script> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|