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

-4
votes
1answer
51 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
60 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,...
9
votes
3answers
8k 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
26 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
50 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
25 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 ...
0
votes
0answers
43 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
39 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
44 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
50 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
22 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
45 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
21 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
42 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
67 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
13 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
144 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
26 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
45 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
78 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
68 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
45 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
11 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
373 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
37 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
210 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
50 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
30 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
66 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
111 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 ...
0
votes
1answer
70 views

Why I'm Not Having Access to “$_POST” Data Outside My AJAX Callback?

I'm trying to pass some data from the Back-end to JavaScript. The thing is, when I try to console.log() the variable passed through the wp_localize_script() it shows me on Console the structure that I'...
0
votes
1answer
76 views

Custom AJAX form not working async

I have a contact from that uses PHP mailer that I have integrated into my Wordpress blog. The script sends emails no problem - the issue is that it does not work async so once the form is submitted I ...
1
vote
1answer
56 views

How to select the contents in the text view textrea in wp_editor?

I am trying to count words among other text stats entered into the default post editor (wp_editor). Its supposed the write word count out to <div id="word count"> in the meta box immediately ...
0
votes
1answer
50 views

comment-reply.js disables any other form javascript

I want to add autosize.js to the form textarea (#comment) but if comment-reply.js is enabled no other javascript in the comments form works. Any idea why is this happening? //Auto resise textarea ...
3
votes
1answer
44 views

Ban certain widgets from certain sidebars

I have several sidebars in the theme I'm developing. Some of them are designed to hold only a few widget types. So I'm trying to figure out how to keep other widgets out without using a plugin. After ...
0
votes
1answer
186 views

WooCommerce dynamic price by quantity

I use plugin WooCommerce Dynamic Pricing Display to show calculated price by quantity on product page. Problem is that css styles don't load for my block product-count-price from style.css...I have ...
0
votes
0answers
34 views

Load WordPress templates with jQuery load()

I'm working on a dynamic menu that slides up and down when you click on a list item in a secondary menu and it's closed when you scroll or press the 'X' button. The list is declared like this in the ...
0
votes
2answers
93 views

Jquery window.send_to_editor function

I have created a metabox to upload images. Whenever I click on the "Select Image" button the Image Uploader Box successfully pops up but when I select an image and click the "Insert" button the image ...
0
votes
1answer
132 views

JS file is not loading when i put wp_head() and wp_footer

In my WordPress project I need to use a WordPress plugin, For that plugin to work I have to put wp_head() and wp_footer(). But when I put that than my slider's JS file don't load. <script src="<?...
-1
votes
1answer
45 views

CF7 Add a read only attribute to an input field

I have a function that validates an input field if a checkbox is checked: jQuery("input[type='checkbox'][value='Internet Search']").click(function(){ if (jQuery("input[type='checkbox'][value='...
0
votes
0answers
58 views

Onclick Save Text In Input Field

Currently, I have a front-end form on my client's wordpress site that allows users to create a post. I'm using the pods plugin to create cpt, custom fields, forms, etc. I have several input fields in ...
0
votes
0answers
42 views

Show error if form input field is blank

Hi i am creating a popup plugin in WordPress in which i want to disable my button which is outside form disable until my form fields are empty. I am not using submit button because after clicking ...
0
votes
2answers
359 views

Always the Latest google jQuery instead of default Wordpress jQuery

Im using successfully the google CDN jQuery files instead of the built in files from Wordpress with the following code in my functions.php: function register_jquery() { if (!is_admin()) { ...
0
votes
0answers
40 views

WooCommerce - My Account - jQuery not working?

I've add some pagination to the my account page to paginate the order history. Everything works great except when I click the "Edit Account" tab the navigation bar I created for the order table is ...
0
votes
2answers
57 views

Disable submit button order

Here is a snippet of my code <?php echo apply_filters( 'woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" ...
0
votes
0answers
44 views

jQuery hover events within Ajax loaded div

I've built a custom theme for a WooCommerce site I am working on. I have recently added the Advanced AJAX Page Loader plugin to load all elements within the #content div. I am now having 3 issues. ...
0
votes
1answer
88 views

WP Media Uploader modal conflicts with Bootstrap modal

I was creating a form in a Bootstrap Modal to allow users to create new posts from the frontend. Everything seemed alright until I wanted to upload a file to the media library or choose one already ...
0
votes
0answers
23 views

How to hide a Control in the Customizer?

I know contextual controls hide if for example the user navigates from the viewer certain pages. But how can I achieve hiding a control under this scenario: There is a type Select Control with an ...