JQuery in WordPress

/ Published in: JavaScript
Save to your folder(s)

Accessing JQuery's $() shortcut within WordPress

Copy this code and paste it in your HTML
  1. // javascript in theme file
  2. jQuery(document).ready(function($){
  3. // code goes here
  4. // $('#idname').append("<b>Hello</b>") should work properly now
  5. });

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.