Instead of $(document).ready(function() { //document ready }); Use $(function(){ //document ready }); Tagged: 2015Document Ready