When you are coding in the WordPress admin area, there may be times when you want to code some functionality which requires Javascript.
WordPress comes with an inbuilt Javascript library called jQuery. This is a Javascript framework which makes it very easy to do almost anything with your Javascript.
When working in the admin area jQuery is already included on all the pages and can be used in your own Javascript files.
But there is a common problem which some people get stuck on when working with jQuery and that is the use of the $ symbol.
Most people are used to using jQuery by loading the file using the script tag and using the $(document).ready() function to use your jQuery code.
$(document).ready(function () {
$(body).append('Hello World');
});Continue reading




