Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
Jquery not working in sharepoint 2013 -Uncaught ReferenceError: $ is not defined
9516 Views
Note 
Uncaught ReferenceError: $ is not defined

if the console shows above message in sharepoint.Instead of $(document).ready() function
use _spBodyOnLoadFunctionNames.push();
Example with ready()
$(document).ready(function(){
alert('a');
});
Use the following fomat
	_spBodyOnLoadFunctionNames.push("myFunctionName");//this function called during page load
	function myCustomName(){
	alert('a');
	}
Best Lessons of "Microsoft Sharepoint 2013"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details