Snippets
jQuery is running in 'noConflict' mode, how to use the '$' alias.
In ePages the $
alias of jQuery
is not available.
<script type="text/javascript">
(function($){
// use $ only in this anonymous function
})(jQuery);
</script>
Use jQuery on DOM ready.
Specify a function to execute when the DOM is fully loaded.
<script type="text/javascript">
jQuery.ready(function($){
// use $ only in this anonymous function
});
</script>
Load a jQuery or ePages plugin.
See also the documentation of the jQuery.ready()
method to get more information about the plugin loading concept.
<script type="text/javascript">
jQuery.ready( ["ep.ui.slides"], function($){
// use $ only in this anonymous function
ep('.myClassSelector').uiSlides();
});
</script>