jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is included with WordPress, and available to both themes and plugin developers.

learn more… | top users | synonyms

1
vote
2answers
23 views

AJAX not Working with php as supposed

I am creating a like system in PHP . My code looks like this . <?php class Like_System { private $userid; private $postid; private $user_ko_like_count; private ...
0
votes
0answers
147 views

Ajax jQuery doesn't work in mobile

I created an Ajax file to send data to my functions.php and then return values to the Ajax file. PC works perfectly, but in mobile, on an iPhone in this case, why is it not working? This is my ...
0
votes
3answers
69 views

How to track clicks

On certain custom post type I would like track when visitor clicks to view for example phone number, website etc. I know I could do this with google analytics but I would also like to save this data ...
0
votes
2answers
292 views

Passing variable data from external jQuery file to options.php

I'm setting up a plugin that requires passing of a variable from a stand alone jQuery file to options.php. I have (I think) set up the scripts to be used in my plugin file like so: function ...
0
votes
0answers
69 views

Initial load of category jquery

I've succesfully implemented this jquery I found in another thread, using ajax to load different categories.. Problem is that posts are only loaded after a click - i'd like to display one category on ...
0
votes
0answers
102 views

My AJAX requests take 30 seconds to complete

I am a wordpress newbie messing around with a wordpress installation on localhost using XAMPP and I've encountered a weird problem that I can't find any information on. The problem is that every time ...
0
votes
0answers
206 views

Ajax request not working on firefox

myscript.js jQuery(document).ready( function ($j) { $j('#button').on('click', function () { var data = { action: 'time', type: "POST", time_var: 'day', ...
0
votes
1answer
38 views

Fire an event after Featured Image selection

I have a requirement to crop the featured image to different sized parts in wordpress. How to fire an event when the featured image is set(not after publishing) on a new post I tried using ...
0
votes
1answer
34 views

Duplicate “default” form with jQuery

I have this code: // Add form jQuery('.add-form').click(function() { // "Copy" default form formGroup = jQuery('.form-item').html(); // "Paste" default form ...
0
votes
1answer
94 views

Can't execute jQuery before my script

I have a very simple JS script called script_1.js sitting at the root level of my twentytwelve-child theme. This script contains only: $(document).ready(function(){console.log("scriptLoaded"); }); ...
1
vote
0answers
48 views

Attempt to change jQuery version caused White Screen of Death

I'm working on a client's WP installation, and I'm attempting to replace the default jQuery library included with WordPress to a newer version. I inserted the following script into the site's ...
0
votes
0answers
111 views

jQuery get elements inside tinyMCE WYSIWYG field

How can I access elements inside a tinyMCE WYSIWYG field with jQuery/Javascript? My case: I have a Wordpress site using Advanced Custom Fields and several WYSIWYG-fields. I want to be able to get ...
0
votes
1answer
53 views

Display images from JS?

How can I get images from JavaScript? Code is given below: $(window).ready(function() { 'use strict'; $.vegas('slideshow', { backgrounds:[ { ...
3
votes
1answer
294 views

How to overwrite a JavaScript core function?

Since the newest WP version 4.3.1, there's a change in the WordPress core JavaScript file: /wp-admin/js/edit-comments.js At line 376, the WordPress dev added a check for how many table columns there ...
0
votes
0answers
97 views

Wordpress and Raty.js

thanks in advance for any help you can provide. I am trying to implement Raty.js into a archive template for a custom post type I have created. As far as I understand I only need to enqueue the ...
0
votes
0answers
36 views

Nonce stop working on live server

I'm using jquery to send an email after a form is completed. I'm using the nonce in Wordpress for security. This was all working but today stopped working in the live server. It still works locally ...
1
vote
0answers
83 views

Refresh page after update_post_meta

I have created a input field on a front-page where the value of the database is on the same page as the input-field. If a value is passed to the database I have to reload the page for it to show on ...
0
votes
0answers
42 views

Reuse / extend the Backbone toggle mode in upload.php

The WordPress media library allows us to toggle between selection modes. I'm trying to bind the existing Backbone function for toggling between selection modes (bulk mode) to a button I added to the ...
0
votes
0answers
159 views

[jQuery]Adding shortcode

I have been struggling with this the entire night, with no hope of ever reaching my goals. I have browsed through several books worth of support pages, but I can't get this to work. I am trying to ...
0
votes
1answer
46 views

Conditional Tags - Multiple Categories

I need to have all News posts show a category header (while not showing the post title). The following piece of code seems to do the job: if($category[0]->name == 'News'){?> <script> ...
0
votes
0answers
66 views

jQuery keyup() on Visual editor

I need to trigger typing in Visual editor and to get current text from it. Is it possible? Then next line are not working: $("visual_editor_selector").keyup(function(){alert("Changed")}); ...
0
votes
0answers
38 views

Angular disable the input submit tag

I've imported AngularJs in Wordpress into the header.php file <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js" type="text/javascript"></script> ...
0
votes
0answers
72 views

Add and remove fields in wordpress widget

I am trying to make field adding and removing wordpress widget. I made it in html jquery, but I don´t know, how can I transform it to wordpress widget. Can You help me please? My jquery and html ...
0
votes
1answer
319 views

How to refresh a page from jquery [closed]

Im sending some data back and forth WP and at the same time Im trying to refresh the page from server side. on functions.php function communicate_to_jquery() { ...
0
votes
0answers
25 views

Use jQuery to fire a script on specific pages

I am looking to run some code on specific pages only and I would like to be able to identify those pages just by id. I'm not a programer and I'm sure it can be done. What I would like is to be able ...
0
votes
1answer
92 views

Change zurb foundation top bar style on.scroll in wordpress theme using jquery and css

I was wondering if someone could help me out. I am currently developing a wordpress theme using foundation framework on a local host and I would like for the top-bar to change styles on scroll using ...
0
votes
0answers
120 views

Use Media Uploader in Widget

I am trying to use the Wordpress Media Uploader inside a Custom Widget. When I use a similar code for a custom meta box inside the post edit screen everything works fine, but on the widget site it ...
0
votes
1answer
58 views

JQuery Login Dropdown not functioning in theme

Having a problem on my demo site (http://somm.icorp.net/) what I'm attempting to accomplish is when you click on the LOGIN button a drop down appears and using JQuery, it displays a login box so users ...
0
votes
1answer
171 views

How to use Bootstrap with WP's jQuery? [closed]

I am using WP's local jQuery. All my own scripts are working fine! But bootstrap gives me this error message in the console: Uncaught Error: Bootstrap's JavaScript requires jQuery. How can I make ...
4
votes
2answers
726 views

How do I use WP's jQuery

I am trying to learn WP theme development. And I just learned that WP already has a jQuery verision included. Until now I have been using the jQuery from Google's CDN. So I just now deleted the CDN ...
0
votes
1answer
80 views

Revert to previous dropdown options after change

I have two dropdowns (which are using Chosen.js). The second dropdown displays custom categories: <script type="text/javascript"> jQuery(document).ready(function($) { ...
0
votes
1answer
97 views

Custom Javascript not working? [closed]

Basically I want the effect to look as it does here But mine won't do the effect I currently have a button but it won't activate the effect for the menu to pop open. site that I'm using to test it ...
0
votes
0answers
36 views

Trying to modify a plugin jQuery event

I'm using a plugin called "Out of the Box" to show dropbox contents. The search is designed so that it... only searches the folder and child folder you start from begins searching on a "keyup" event ...
0
votes
1answer
174 views

Reload wordpress shortcodes

Let's say I have a page, and inside that page, I have inserted shortcodes/plugins for a chatbox, twitter feeds, fb feeds, tumblr, etc. The shortcode accepts parameters for different hashtags to ...
3
votes
1answer
92 views

Detect a focus on wp_editor

I wan't to detect/callback when a wp_editor(..) output text-area/content-editable is focus. Quite a simple question that I could not find anywhere. <div class="compose-body"> <?php ...
0
votes
0answers
312 views

Category filter with load more ajax

What I am trying to do is to do an Ajax request to filter posts on category click depending on the category id, then apply load more posts by ajax. Problem: when I fire the ajax call by clicking on ...
0
votes
0answers
24 views

jquery prettyphoto insert miniatures lightbox and navigation tools

I have a question to ask: why if in jqueryprettyphoto.js if I enter the parameter: hook: 'data-relay', / I can see navigation tools, twitter, facebook but I can not save the picture. however if I ...
0
votes
1answer
53 views

datepicker value in mysql

I am using a plugin WP-Types for custom post types in which there is a option to create custom fields in which i created one date field for my requirement. Now what happens when i add any date into it ...
0
votes
0answers
35 views

Cross fading code for website

I found this tutorial for cross fading images through a link click: CSS3 = Awesome: Cross fading images It is number 6 in the tutorial. I know there are some changes to the jquery that need to be ...
0
votes
0answers
123 views

Toggle Visibility of Separate Javascript Files on Same Wordpress Page

Let me preface by saying my knowledge of JS is lacking at best and the concept of installing/loading/enqueueing a function on one area of the site and then calling that function in another area of the ...
0
votes
1answer
210 views

Admin Ajax is returning 0 and not Insert data

I am relatively new to jQuery and AJAX in particular. I have a small issue with the return value always being 0, though I think this is actually the success message and it's not returning anything. I ...
1
vote
1answer
78 views

Wordpress custom taxonomy check box to dropdown

Hi my custom taxonomy name is country.In this A is a country, a-sub1,a-sub2 are states under A. b-sub1,b-sub2 are state under Country B. Now i need to display the country list(parent) box and state ...
1
vote
2answers
1k views

Is there a way to enable Cross-Origin Resource Sharing for WordPress' ajaxurl?

WordPress already has a default URL for jQuery-WordPress application calls and it's well known as the ajaxurl. However, there are cases wherein one would need to enable Cross-Origin Resource Sharing ...
0
votes
0answers
114 views

[jQuery]Autocomplete and $.post

I managed to solve it using Sisir's push in the right direction. Here's the javascript function: function render_edu_hook_javascript() { ?> <script type="text/javascript"> var ...
0
votes
0answers
130 views

openbtn.addEventListener is not a function?

Someone has helped me with this script in Codepen where it worked fine, until i tried to implement it into my Wordpress website. The two sets of grey dots are buttons. Each button will open it's own ...
0
votes
1answer
42 views

How to get this jQuary script working?

I've searched for it, but I just getting more confused. I want to use this script to show a menubar after scrolling down 200px: ...
0
votes
0answers
30 views

Enqueing Scripts

Perhaps more of a verification question for me... My plugin uses a few JS files which it enqueue's, however I am finding that in some instances of WordPress and some Themes the JS is not working as ...
0
votes
0answers
57 views

Been at this for hours--how do I add a jQuery function in the functions.php of WordPress?

I can't include all the things I need to include in my one multi page gravity forms form. If I try to include too much it just 403 errors me. I need to add a video at the top of each page. I've spent ...
0
votes
0answers
2k views

WordPress AJAX File Upload - FrontEnd

So I have been reading through every WordPress front-end AJAX file upload tutorial I can fine. Nothing is working for me at the moment. The one that makes the most sense to me is this one: ...
0
votes
1answer
29 views

Jquery being loaded wrong

So first off, I don't understand this coding very well. So bare with with me if I'm using the wordage wrong. I have a plugin called TablePress. It's creates tables from csv files and uses jquery to ...