<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7" crossorigin="anonymous"></script>
(function( $ ) {
"use strict";
$(function() {
//Your code here
});
}(jQuery));
jQuery(document).ready(function($){
// jQuery code is in here
});
<script src='jquery.js'></script>
if (typeof $ == 'undefined') {
var $ = jQuery;
}
<script src="/path/to/jstree.min.js"></script>
<script>
jQuery(function($) {
("#divtree").jstree();
});
</script>
(function($){
$(document).ready(function(){
// write code here
});
// or also you can write jquery code like this
jQuery(document).ready(function(){
// write code here
});
})(jQuery);
(function ($) {
$(document).
}(jQuery));
1
jquery.steps.js is loaded way after your initialize-steps.js
<script src="/files/js/views/person/initialize-steps.js"></script>
....
<script src="/files/bower_components/jquery.steps/js/jquery.steps.js"></script>
You need to load initialize-steps.js after it
<script src="/files/bower_components/jquery.steps/js/jquery.steps.js"></script>
<script src="/files/js/views/person/initialize-steps.js"></script>