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

0
votes
1answer
32 views

Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge

So I am using jQuery and pHp together to send an email to myself whenever a user clicks on the update button of their Ultimate Member form. However, the email only sends when a user is using Chrome, ...
2
votes
0answers
15 views

Script won't execute in the media manager

I'm trying to execute a jquery script on the click of a button in a custom tab of the media manager, but it does not seem to work. I have been told this might be due to the button not being loaded ...
0
votes
1answer
20 views

Change shortcode value by jquery in WP Editor

I have this code on the WP Editor <p>[vc_row][vc_column][le_page_grid le_page_grid_layout="1"][/vc_column][/vc_row]</p> and i have two radio buttons on the meta box <label><...
0
votes
0answers
15 views

Can't get post meta from custom post type metabox

I use Ajax Load More - Infinite Scroll plugin for output custom post type. I have custom meta box link_to with value /something - it's just link. In template of plugin i try to get it <a href=...
0
votes
3answers
53 views

Ajax Load more CPT via shortcode

I have a problem with ajax load more for my CustomPostType. I think i have mistake but don't know where. If it possible to edit my code, i will happy. UPDATE I have create div cool to paste in it ...
0
votes
1answer
65 views

TypeError: $ is not a function Error using parallax effect in Wordpress Template [duplicate]

I`m trying to include a parallax Effect into one of my cutsom page templates. The js function is returning the following error in the firebug console: TypeError: $ is not a function The error is on ...
0
votes
1answer
21 views

How to overwrite iris color pallates from theme to plugin

I am working n plugin for iris color pick and in plugin I want to make my own color pallets and overwritten on iris color picker that use in theme. I create 6 fields in plugin where user can put ...
0
votes
1answer
23 views

How to toggle custom WP archive list

Help! I'm trying to toggle the "SideDish Archive" list in the right-hand sidebar of this page – http://my-table.com/sidedish/. I don't know really anything about javascript. Small company, small ...
0
votes
1answer
42 views

How do I get my suggest to only suggest one taxonomy?

I am using the built-in wordpress suggest plugin to call the entries from the terms table. Using the following sql query it spits out all terms: $query = 'SELECT term_id,name FROM ' . $wpdb->...
0
votes
1answer
47 views

Looking for a better way to handle an ajax script that pulls in post data on click

I've developed a template page that displays a grid of "employees" (a custom post type). That part works fine, but I also needed to set up a lightbox to display additional details on click. To avoid ...
0
votes
0answers
17 views

Widget save brake jQuery [duplicate]

I have created a plugin that creates a widget. On the widget form i am using jquery functions that i load using wp_enqueue_script. When adding the widget on a sidebar, everything works. Then when i ...
0
votes
2answers
60 views

Check if user is logged in when clicking certain links on certain pages

On my site I have a number of post category archive pages. What I would like to do is set it up so that when links to specific posts are clicked on these pages the user is sent to the post only if ...
-1
votes
1answer
40 views

jQuery append only works if I select html in admin section [closed]

The following jQuery code works as expected, in that it inserts the specified html after the closing tag. $( "html" ).append( "<div id='bf_rsvp_note_display'></div>" ); However, that's ...
0
votes
0answers
24 views

Detect hover over control label in customizer

In the WordPress Customizer > Site Identity: there's a text field for 'Site Title' wrapped in a list item id li#customize-control-blogname I want to detect whenever a user hovers over this element. I ...
0
votes
1answer
23 views

Help to upload post attachments from Ajax

My problem is that I cannot upload post attachments from a frontend form. I send data through AJAX to my php files containing functions. Let me be clear: everything is working great, the post is ...
4
votes
1answer
221 views

Retrieve POST data from AJAX call

I have the following JS script : jQuery('#form-recherche').submit(ajaxSubmit); function ajaxSubmit(){ var newFormRecherche = jQuery(this).serialize(); jQuery.ajax({ ...
1
vote
3answers
107 views

AJAX call returns 0

In spite of many similar posts, all the proposed solutions didn't work for me, so here we are. I have the following script : jQuery('#term').keyup(ajaxChange); function ajaxChange(){ ...
0
votes
1answer
34 views

Searching JQuery arrays of taxonomy terms for word matches in frontend images upload

I have a need to search through 4 different Taxonomy terms for matches of image tags. Using Jquery. Having hundereds of images to upload and tag and the theme I'm usings back end has a problem(...
-4
votes
1answer
52 views

Widget won't work due to old JavaScript? Any ideas how to make it work? [closed]

I was trying to add this widget to my blog <!--BEGIN PROFILE WIDGET--> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript">&...
0
votes
0answers
70 views

jQuery is not defined in wordpress

Got the not defined error for the script below : JQuery.noConflict(); jQuery(document).ready(function($) { /** Code using $ referencing to jQuery **/ }); Can't explain why and solve the problem,...
11
votes
3answers
12k views

Annoying JQMIGRATE: Migrate is in console after update to WP 4.5

Can anyone explain why is there a constant notice JQMIGRATE: Migrate is installed, version 1.4.0 that points to load-scripts.php in my console when I updated my theme to WordPress 4.5, and how ...
1
vote
1answer
27 views

Calling JavaScript file with Custom Plug In

So, the goal is to use jQuery Validation for a custom form. Maybe I'm going about this the hard way. But, here's what I'm doing: Uploaded the jQuery Validation file to my theme folder Created plug-...
0
votes
0answers
16 views

Importing External JS to Wordpress

I want to place this code on my WordPress site: http://codepen.io/FWeinb/pen/hlEke. The HTML and CSS codes can be placed without any problem. But I'm getting stuck at placing the JavaScript code. I've ...
0
votes
1answer
68 views

Setting value of session with Ajax not working

I´m kind of new to using Ajax but I am trying to update the value of a session using Ajax. The Ajax call shoud fires when clicked on a button. When I click on this button it also returns the succes ...
0
votes
0answers
31 views

Adding extra rows to form, and saving values entered.

I am attempting to create a quote-form where the user can add as many items as necessary. I would then like to take the values entered and output them to a html table in an email. Here is the ...
1
vote
0answers
67 views

Frontend Post with JQuery AJAX to Php Issue

My problem is the following. I'm trying to make users publish custom post_type by frontend through a form like this: <form id="msform" enctype="multipart/form-data"> <fieldset id="...
0
votes
2answers
40 views

Is it save to use eval for a jQuery callback method coming from the database?

I'll be brief and hope I can explain my scenario correctly. Here's my scenario. The jQuery slider plugin has an anonymous callback method. I would like to give the Admin the ability to create a ...
0
votes
1answer
58 views

jQuery accordion menu

So I have just started developing a theme with _s (underscores) as a basis. For three days straight (almost) I have been trying to make an accordion menu sort of like this: Example: https://codyhouse....
0
votes
0answers
53 views

Reload specific divs after login

My problem is the following. I've a form which I want my guests users to fill out before completingit. So before the last step I place a sliding down jquery/ajax form for login/register to show the "...
0
votes
1answer
30 views

I can't enqueue Suggest.js in frontend - not added

my suggest.js is not being added in front-end. All scripts are correctly loaded but this one. I want to load it only on frontpage so: add_action('wp_enqueue_scripts', 'homescripts'); function ...
0
votes
1answer
31 views

Form not working as it should in WordPress, but in a normal HTML site it does

I am in need of help. I have a website, which has a form to fill out (simple form, that calls a PHP function and some other JQuery libraries). It is made in an ordinary HTML file, and works well on ...
0
votes
1answer
52 views

Jquery code won't run loaded from WP, but run from console

I'm trying to get a value and pass it to a hidden input in order to send form data via $_POST. I have a dropdown button and the following code in order to update the value: jQuery(document).ready(...
0
votes
1answer
22 views

WP Customizer: Save a control state

I am trying to implement an equivalent control to the default custom background that wordpress provides. If an image is inserted, it activates a couple of other control (eg. repeat, position etc.). ...
-1
votes
1answer
43 views

JS file not loading [closed]

I am trying to link to my javascript file in WordPress to manipulate the navigation bar. Here's the call in functions.php: add_action( 'wp_enqueue_scripts', 'scrolling_navbar_enqueue_js' ); /** * ...
0
votes
2answers
76 views

Trouble adding inline style after jQuery in the footer!

I am trying to move my javascript to the footer, however when moving jQuery, it breaks a slideshow. I am using the following to load jQuery in the footer: wp_deregister_script( 'jquery' ); ...
0
votes
0answers
14 views

How to call mp3url from metabox in jplayer jquery plugin in wordpress

I am sorry for taking time for such a nonsense task. I am a very new user of wordpress and no more knowledge about the programming. In my wordpress theme i am trying to use jplayer jquery plugin for ...
1
vote
0answers
193 views

woocommerce in check out page how change the tax rate with ajax an php [closed]

Hi can anyone please tell if possible change the tax rate in woocommerce plugin in chekcout page i want to change the rate tax 0% or 19% when user select option if personal(19 %) if company (0 %) ...
-2
votes
1answer
28 views

Jquery dropdown menus working locally, but not in Wordpress [duplicate]

So I've followed this tutorial to the T, even downloading source files and implementing locally: http://red-team-design.com/simple-and-effective-dropdown-login-box/ I also saw another poster here ...
0
votes
0answers
50 views

Redirect to an anchor after click update button in a metabox (CPT)

On my Custom Post Type (CPT), I had multi metabox and I need to have some buttons to update each metabox. I use jQuery to trigger the submit event when a different element is clicked (see this answer ...
3
votes
1answer
84 views

Cannot access elements of json object

This is more of a json question but since it is within wordpress and is being processed by admin-ajax.php I thought it suits this forum best. I have created a standard ajax form procedure as shown ...
0
votes
0answers
79 views

custom jQuery on a GravityForm - it runs when submitting the form (and it shouldn't)

I have a custom jQuery function I wrote for one of my forms, which filters Dropdown B based on what the user chose in Dropdown A. It works just fine, except for when someone tries to submit the form....
1
vote
1answer
46 views

Click a radio button must set textfield value

I have these radio-buttons in my checkout page: <input id="95292" type="radio" name="GLSShop" value="95292" onclick="SaveShopID('95292')"> <input id="95064" type="radio" name="GLSShop" value=...
0
votes
0answers
12 views

Modify the forms control in the theme customizer using jquery or js

i'm trying to modify the input boxes which i created using $wp_customize from the theme customizer, for example if a select box from the theme customzer changes of value, the other select boxes hide. ...
0
votes
2answers
663 views

Call a javascript function from another file

In wordpress, to use $ instead of jQuery prefix, i added the following code around all js code: jQuery(function($) { ... }); It works well, but i cannot call an object from another javascript ...
0
votes
1answer
40 views

Jquery not loading / running on wordpress home page

Im hoping someone can help, im trying to get some animation on scroll working with a jquery script i found. i think ive managed to get it to read $ and jQuery as wordpress runs in NoConflict mode but ...
0
votes
1answer
285 views

Referrer URL with jQuery or Javascript - Cache & Referrer URL Issue

Hope someone can help me : ) What Im trying to do is, get the first visit referrer and send it to form. We user Contact form 7 plugin, so I created a hidden input, get the referrer URL and assign ...
1
vote
1answer
56 views

Genesis + Ajax + Jquery | Failling to call action

I want to execute an action, without realoading my page. I folllow this tuto https://codex.wordpress.org/AJAX_in_Plugins But each time my page reloads, and I can't have the result value. Here is my ...
0
votes
1answer
32 views

Add HTML between feed items

I am using a Wordpress plugin called RSS Retriever to display a RSS feed on this page Manchester United News What i am looking to do is display an advert (HTML) between every other feed title. Is ...
0
votes
0answers
71 views

How to include jQuery and JavaScript code in metabox?

I am trying to include jQuery and JavaScript code in a metabox but it is not working. Can anyone give a suggestion how I can achieve this? function prefix_enqueue_scripts3() { ...
0
votes
1answer
145 views

Clicking on disabled 'add to cart' button

I have a button in Woocommerce, which is to add to the cart. It will sensibly only add to the cart if the relevant options have already been chosen. Until then, the button is disabled: <button ...