Alternate way of Document Ready Instead of $(document).ready(function() { //document ready }); Use $(function(){ //document ready }); Read More →