ricardozea
12/16/2014 - 6:18 PM

Write jQuery functions using the $ symbol in WordPress.

Write jQuery functions using the $ symbol in WordPress.

//Write jQuery functions using the $ symbol in WordPress:
jQuery(function ($) {
  $(".selector").hide();
}

//In case you have to relinquish the use of the $ symbol:
var $j = jQuery.noConflict();
$j(function () {
  $j(".selector").hide();
}