When you are using Google CDN hosted version of jQuery then you don’t need to use jQuery wrapper. It’s for jQuery packed with WordPress core because jQuery with WordPress runs in noConflict mode.
So your jQuery code will be.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
console.log("Test");
$(".myBox").click(function(){
var myBoxOn = $(this).attr("data-class");
$(".myBoxContent").hide("slow");
$("#" + myBoxOn).show("slow");
});
});
</script>
Related Posts:
- Confirmation box when submitting post for review
- Ajax Load More Posts in Category Page
- Dynamically update post title in admin page
- Getting an alphabetic post list with two letters onclick on letter
- How to load post content on index page using ajax when post title in sidebar is clicked
- POST from jQuery to PHP
- Working Bootstrap Carousel Conversion to WP – Technical Questions
- “Uncaught SyntaxError: Unexpected token
- Add confirmation popup on “Move to Trash”
- The correct way to call posts with ajax
- How do I use Ajax to show the new posts realtime, on the frontpage
- How to create a load more post entries like Twitter?
- Disable Jquery UI post tabs
- jQuery inluclude still seems ncessary for script to work within post
- Ajax load more button in Recent posts widget
- Ajax Dynamic Archives not showing correct results
- WP_Query with ajax handler returns the same posts
- Ajax post filters not working
- Ajaxify This Code
- Genesis + Ajax + Jquery | Failling to call action
- How do I locate the exact location where this error is occurring 404 page not found
- Do all wordpress themes a similar class name for content?
- Security to delete post by Admin
- add bootstrap post slider with tabs
- Use Click Image to Play Youtube Video in a WordPress Loop
- Call current post URL in ajax
- datepicker value in mysql
- Adding JS functionality to the Publish button in wp-admin/post.php
- displaying the categories post
- Using the loop to set locations for all posts on a single google map
- Many buttons not functioning in WordPress dashboard (as admin)
- Ajax post doesnt call succes after got the response
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- How do I use slideToggle inside a wordpress post?
- Printable Page with all Posts from Tag
- problem with creating a wordpress post slider
- WP Load post with ajax and apply isotope
- Run Jquery Script after delete post in front end
- Get post id on click of thumbnail
- jquery: getting contents of #content field on post page
- Full width images within post content
- Keep featured content post in homepage with original order
- Are post ID’s reliable?
- using wp_update_post on save_post
- WordPress plugin to publish to multiple remote WordPress blogs
- How to wrap every image in a post with a div?
- Order post by year DESC and month ASC
- Showing random content / pictures from earlier posts in a sticky post?
- Custom wp_trim_words() function not trimming right
- How can I hook into creating a new post and execute wp_die(), before the post is inserted into the database?
- Function to show random posts from a category
- wp query with dynamic taxonomies and terms?
- How can I hide the sidebar from a specific post?
- move blog posts from one wordpress to another
- How to run a function when post is edited or updated using publish post action?
- Getting a 404 error when clicking edit page
- Display number of posts via adress bar?
- Get Posts that are in the current month or later
- WP Query to Get Array of Slugs
- get current post id inside hook
- Email entire post contents
- How can you change all past posts’ images to link to none instead of the image file?
- Apostrophe in a possessive appears as an open-single-smart-quote instead of a closed one
- Add Read More Tag to a post content (Single.php)
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- Only display sticky post or latest post in custom loop
- why there are so many posts whoes post_type is revision? will these records waste too much database space?
- Ignore latest two posts
- Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
- Add a variable in a post
- On what hook can I get the queried object’s final state?
- Modify this line to give alternate format date?
- Show more than 200 images in one post
- Wrap posts p tags in div
- inserting a category into post
- Which plugin will let me relate one post to another? [closed]
- wp_list_categories() Exclude All Categories Except One
- How can I get posts from 9/13/11 to today with SQL? [closed]
- How can I globally italicize list of texts in the UI database or Posts? [closed]
- How To import post If I have only subscriber access
- how to show current date on post title which should be auto update in every day
- Updates are not showing to public (New Posts , Theme Change)
- How can I make a post sub link?
- Include Recent Post in Category
- Display image gallery if more than 1 image
- get_next_post() not working with future post status
- Order result from ajax
- Show post published live
- how i show manual data in a post
- Change archive results based on GET request
- How to get meta data from custom category name
- Show short text of content
- Need help writing loop to display posts by categories in separate divs
- How to create a Top 10 Popular Posts Page?
- Multiple Post Repeat for Related Post Loop by Category
- Voting System, database connections?
- include other content type post ID not working
- Notify Author of the post if admin deletes his post and perform some function
- Dynamic archive of posts by date
- Name Registry (forum?) – Self Entered