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
1answer
35 views

No data received

When I use the wp_register_script() and wp_enqueue_script() to load the jquery for the wordpress I got "no data received result with other information like this : Unable to load the webpage because ...
0
votes
1answer
93 views

search in jquery mobile returns blank page

Regular prelude: new to jquery mobile, sorry for the long pieces of code. Trying to build a mobile version of my theme. started easy by placing a header content and panel and search form. when ...
0
votes
1answer
56 views

Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll

I am currently using WooCommerce to display a list of products using the following loop to enable the post-type "product" be displayed and allow for pagination so I can use Infinite Scroll to smoothly ...
1
vote
1answer
992 views

Error when posting comment form: The error is TypeError: e[h] is not a function

I am getting an error when the function below posts the form (from the second time, the first time it is blocked). When I click the submit button after this, the form submits without problem. The ...
0
votes
1answer
199 views

need to override function in jquery.ui.datepicker.js

In this location in wordpress /wp-includes/js/jquery/ui there is a file jquery.ui.datepicker.js I need to override this bit of code noWeekends: function(date) { var day = ...
0
votes
1answer
1k views

Wordpress slider that allows image, headline, text, and button?

I'm looking for a slider for Wordpress that will allow me to create a really clean-looking site—the kind of site where you land, you see text and images, and you don't even know you're looking at a ...
0
votes
1answer
129 views

I want to enqueue a .js file to my child theme

I tried to enqueue a custom .js file in my child theme directory. In the functions.php of my child theme I find the following code /* After this. you can override Accessible Zen's pluggable ...
0
votes
1answer
163 views

Dropdown filtering extremely slow

I have two dropdowns on my frontpage. The first dropdown selects a custom post type, and the second selects a location. The second dropdown is filtered based on the selection of the first dropdown ...
0
votes
0answers
35 views

Custom metabox for multiple images gives a JQuery error saying a function does nog exist

I have a script that creates a custom metabox and makes it possible to upload multiple images to one page post. It gives me no error but the console tells me this: TypeError: add_field_row is not a ...
0
votes
2answers
46 views

Disable wordpress from including jQuery in the head section

I need to make Wordpress not include jQuery in the <head> section of every page. The reason I need this - is because I am already including jQuery at the very bottom of the document. I tried ...
0
votes
0answers
86 views

How to force TinyMCE to update

I'm using the wp_editor function to display TinyMCE on the front end of my site. I have an AJAX script hooked up to the submit button on my form that shoots off to admin-ajax.php (as in WordPress ajax ...
0
votes
1answer
148 views

Theme now uses require.js and enqueue script no longer works

I created a small custom script that fixes a sidebar at different point depending on if there is a banner. I used enqueue script in my child functions file and then a custom.js file with my ...
0
votes
0answers
335 views

Pass php to database in JQuery: With AJAX?

I have this plugin that adds a metabox to the post-page screen to upload multiple images. This works great however I'm missing one option. I want to add that function to the metabox. The problem is ...
13
votes
3answers
7k views

$ not defined using jQuery in WordPress

I know that jQuery is loaded, because I can switch out the $ for 'jQuery' and everything behaves as expected, but this will be a messy script if I can't fix this This script: ...
0
votes
0answers
199 views

autocomplete automatically wordpress custom post dropdown attached to taxonomy term using Ajax and jQuery

Please, I want to create a wordpress-Ajax and jQuey driven form, that sends a bench of informations about a list of schools. That form will process data from custom post type" School" related to an ...
0
votes
0answers
109 views

jquery tinymce and bundled wp plugins

So I managed to get dynamically generated versions of jquery tinymce to work in wordpress and work with the bundled wplink js plugin - albeit pretty badly hacked together. Was wondering if anyone has ...
0
votes
1answer
36 views

Is there a default way in wordpress to create a overlay in the dashboard?

Is there a default way in wordpress to create an overlay in the dashboard area? I need a jquery ui dialog to open after a button click. This is how it goes: The button click will fire a PHP function ...
0
votes
1answer
68 views

How to display checked posts on another page over AJAX? (like comparasion style)

I wanted to create an "comparasion" model for my WordPress Website, but gone bad at that. I cannot figure out how to ... On one page I have displayed post (custom post type, ex. "Products"). Next to ...
0
votes
1answer
82 views

jQuery code not working in widgets page

I'm trying to add this code to one of my widgets form, but it doesn't work. <script type="text/javascript"> $(document).ready(function() { $('#select').change(function() { $("#" + ...
-2
votes
1answer
160 views

JQuery UI plugin not working in IE7?

I want to use the dialog box from this plugin, but it isn't compatible for IE7. When I run it in Internet Explorer's IE7 emulator, the dialog box renders weirdly. It's partly transparent, ...
5
votes
1answer
492 views

Concatenate and minify dependencies for enqueued JavaScript files

I'm loading a JavaScript file using wp_enqueue_script into my theme. However, along with it, I'm loading several jQuery files as well, as dependencies for the enqueued script (which has already been ...
0
votes
4answers
214 views

Wordpress Plugin development Call to undefined function jQuery()

Seriously, I lost my whole day with this... Either I completely missed the point... Or I really cannot find the proper information on the internet... Everywhere I find they say to load jQuery in the ...
-1
votes
2answers
1k views

Dynamically populate Cascading Dropdown from MySQL using JQuery/AJAX [closed]

What I'd like to achieve is managing tables in the front-end of a WordPress page the same way as MS Access does. So, I'd like to show dependent cascading dropdown which are related by foreign key and ...
0
votes
1answer
32 views

Possibility of creating a folder in the wordpress root install and installing a file there, all via plugin?

Here is my situation. I'm creating a plugin, which uses a 3rd party API service. If I include the file ajaxAPI.php in the plugin itself, then call it via jQuery ajax with the full url, such as ...
0
votes
0answers
86 views

jQuery color picker function on change

So I'm writing a Wordpress plugin that generates a live preview upon changes to a php form using ajax. Everything is working great, but one little issue with jQuery is not quite right. Normally, when ...
0
votes
1answer
58 views

Displaying contents of a tab

I have been trying to figure out how to accomplish what I need done which I can show here . I had asked this question in StackOverFlow which I got a good answer but I don't know how to implement it i ...
0
votes
1answer
907 views

Unexpected token ILLEGAL, even on clean install - jquery-issue?

update i get even more issues and errors; POST http://literaturen.org/wp-admin/admin-ajax.php 200 OK 1,39s jquery...=1.11.0 (Zeile 4) GET ...
0
votes
0answers
134 views

Failed to Register WordPress Custom User Role via Ajax Submit Form

I edited my WordPress site custom registration page. I've added 2 new user roles: Employer Agent I renamed default WordPress Subscriber role to Job Seeker. And, this Job Seeker role has all the ...
0
votes
0answers
27 views

Security Plugin Blocks Access to theme folder?

I'm using some jquery to do an ajax request within my theme and it's spitting out a file 404 error even though the file exists. I"m guessing it has something to do with the security plugin. here's ...
0
votes
0answers
12 views

Admin Categories validation

i am trying to validate user input when adding new category through WP , i use jquery.validate() and validation error appeared successfully , but after pressing add new category , the category is ...
0
votes
0answers
25 views

Disable drag metaboxes, create many functions using js not to work!

when i Disable dragging metaboxes in admin, it seems to make some problems. when i use this code: function disable_drag_metaboxs() { wp_deregister_script('postbox'); } add_action( 'admin_init', ...
0
votes
1answer
166 views

AJAX Success Function using JS substr() fails in WP 4.1 vs 4.0

For years I've set up php ajax calls and responses in my plugins like the following, with js error detection conditions as needed like... if( "<e>" == msg.substr(0, 3) ) { do_something(); } ...
0
votes
0answers
244 views

FitVid not working for iframes on particular theme install

I am using FitVid in my theme and all is well except for a specific site that was migrated from Drupal. FitVid works fine with objects and embeds but not iframes, and only on this particular site. The ...
0
votes
1answer
170 views

jquery-issue: cannot load the basic jquery

I am pretty new to wp. I have installed wp 3.9 on a demo site. I wanted to configure and add some plugins; eg the facebook wp-rss-multi-importer I've noticed that I cannot do some configurations ...
0
votes
1answer
57 views

How would I get this to work - send to post from thick box

I have the following javascript which talks to about 6 elements. The first three open a thickbox for media upload and what not upon clicking on a specified button, the last three target the input ...
0
votes
1answer
570 views

owl carousel not working after ajax load [duplicate]

i use jquery 1.11 and this code to ajax load wordpress post content in sidebar . everything is good but jquery functions of owl carousel not work and the carousel in post content not showing anything. ...
-1
votes
2answers
2k views

Integrating WordPress Content into a jQuery Slider

I have a pretty basic 'featured-list - image slider' implemented above my content in my custom WordPress theme. How do I integrate WordPress content into the slider so that the slide content is pulled ...
0
votes
1answer
331 views

Simplest ajax form not working when it should

I am trying to create a very basic ajax call in wp-admin area where the form sends the Post ID. This value will be used to update_post_meta(). Simply stuff right? Well, I've been on this task all ...
1
vote
1answer
87 views

Basic ajax call in WordPress

My aim is to create the most simple ajax call in WordPress, but I can't get my head around how it works. JS File: jQuery("#votepostform").submit(function() { var url = "file.php"; // php script ...
0
votes
1answer
84 views

Why are some custom javascript files working but some are not

I added some custom javascript files to my wordpress page. I put them in the funcstions.php like this: wp_register_script('formfunctions', get_template_directory_uri() . '/js/formfunctions.js', ...
0
votes
1answer
2k views

Loading posts via AJAX in a hidden div with updated URL?

I'm using the code below to asynchronously load posts on the same index page via AJAX. I would like to be able to update the URL as well but am unsure how I can go about adding that to what I ...
1
vote
0answers
27 views

Limit filetype and wp media

This is my input markup: <div class="button-primary" id="fileToUpload">Upload</div> This is js: jQuery( '#fileToUpload' ).click( function() { var custom_uploader = wp.media ({ ...
0
votes
2answers
250 views

How to show/hide a meta box using categories, with a different post type

The following code hides a meta box when certain categories are selected using jquery, in post editor. It works with post as the custom post type. I need it to work with a custom post type called ...
0
votes
3answers
158 views

Enqueue core jQuery in the footer?

I have this in my functions.php file and I can't get jQuery to load in the footer. The includes file loads in the footer fine, though. What else do I need to do? function starter_scripts() { ...
2
votes
1answer
155 views

How to enable “shift-click to edit this widget” functionality on a custom widget?

I have created several custom widgets, modeled from the default widgets' code. The widgets all work fine, and I've been using them in production for awhile. I've been working with the new Customizer ...
0
votes
1answer
165 views

Using wp_localize_script to store the template url into a variable to use in JS

I was trying to store the template url (bloginfo(template_url);) into a variable so I could use it in my JavaScript. However, I realized this wasn't possible and someone alerted me to ...
0
votes
1answer
27 views

Wordpress version for this autocomplete jQuery code

The following code works well but does not work in wordpress please assist: $(document).ready(function () { var ac_config = { source: "ajax.php", select: function (event, ui) { ...
0
votes
0answers
71 views

Storing the template url in a variable in JS file?

I am trying to store the image path url into a variable. However, I'm having a bit of trouble as nothing outputs. Can someone help me out? Or is there a more elegant way of doing this? ...
0
votes
0answers
45 views

Custom searchfield autocomplete

I have tried to fire an autocomplete on a customized search field but to no avail. I have used some codes from help sites but I really do not know what I am doing wrong. Nothing happens when I type a ...
0
votes
1answer
110 views

Problem with jQuery in post body?

I have the following code int he post body and it won't run. I can run it from the console just fine, but in the body of the post it won't do anything and doesn't return any kind of error either. ...