jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions.

learn more… | top users | synonyms

0
votes
2answers
21 views

drupal_add_js weight

I've written a javascript that for some reason whenever I run it, it removes any hover events. Since I am running my site with nice menus I would like to run my script as high up in the $script array ...
0
votes
1answer
15 views

Sub Menu's are not coming under main menu

I am using this code to fetch menu's in drupal. I have given Home as parent menu and other are sub menu's like submenu1, submenu2 etc. But in front end they are not coming under Home menu. Only Home ...
0
votes
1answer
14 views

Ajax Request Failing

I've got a perplexing issue which has left me quite confused. I've got a form which has a link on it and when the user clicks the link it is supposed to open up an AJAX popup form and display some ...
0
votes
0answers
14 views

Adding form elements with jquery to a drupal form

I have a recipe form under node. Up until now, I had a button that would add another ingredient textfield by updating that section of the form with an ajax call. I can no longer do this. Now I have ...
0
votes
0answers
15 views

Show content of custom password field on mouseover

I need to hide a custom password field content and display it when a user needs to see and copy it. Using Password Field module is one way to go. But then Password Toggle module doesn't seem to ...
3
votes
3answers
163 views

How to stop the jquery element being added on ajax requests

I've added a toggle for my superfish menu, it works fine but for every ajax load or colorbox trigger the span is created multiple times. How to fix it??? (function ($){ Drupal.behaviors.customjs = { ...
1
vote
0answers
20 views

Drag and drop between two lists

When the user creates a blog entry, I want the user to be able to make some selection from a listbox. Therefore I want it to be a function where I drag and drop between one prefilled listbox (where ...
0
votes
0answers
33 views

call a jquery function in Drupal 7 [closed]

I have this function in Drupal 7: jQuery(document).ready(function($) { $('#menu').change(function(){ $.get("func.php", { func: "drop_reg_pr", reg_var: $('#menu').val() ...
0
votes
1answer
23 views

Apply condition between two fields in drupal 7 by using JQuery

This is updated JQuery code I have created condition between two fields in drupal 7 i.e. If we select item from first field then as per there selected item, some items of second field is going to ...
2
votes
1answer
74 views

Internal/External JS don't work with Drupal, but works fine in static HTML/JSFiddle

Continued from here Applied JS to Drupal theme doesn't work correctly, but it works fine outside Drupal Working JSFiddle: http://jsfiddle.net/tbq8eo8b/10/ (it calculates total, in Drupal it ...
0
votes
1answer
27 views

Applied JS to Drupal theme doesn't work correctly, but it works fine outside Drupal

Applied this JS http://jsfiddle.net/tbq8eo8b/10/ to webforms. As you can see in fiddle, it calculates total amount. When in Drupal, it gives 0 no matter what amounts you select, it always prints 0. ...
-1
votes
0answers
17 views

setting specific startslide in slideshow - cycle

I´m using four cycle slideshows on a front page, which each have their own view, but are selecting the same pictures. So the settings in each view are the same. I want to set a different start slide ...
0
votes
0answers
23 views

JS: Handling click event on element created by another module's JS

I've got two modules, one of which handles a button which makes all menus retract from sight, and another which handles a cycling background gallery. I'd like to switch from a "blurred" to a regular ...
0
votes
2answers
39 views

Content type or web form(creating own form using hooks) Which one is best way of collecting input from user?

I am new to Drupal and learning is in progress. I know about content types and creating webforms using hooks. Now I want to collect data from user and store it to db and view it later (easily I can do ...
0
votes
1answer
26 views

Why Cant add a class to an element by jquery

In the page.tpl.php I have some elements like <div class="play"></div> I have linked js file to the page and it is correctly works since all functions operate based on click ...
0
votes
1answer
36 views

Jquery.on method returns undefined is not a function

My goal was to create a simple button which once clicked would hide/show a navigational menu, and change the footer's padding alternatively, I'd have used toggle if not for the latter condition. ...
0
votes
3answers
70 views

How to implement jQuery Accordion for a Menu?

I'm looking to implement something like the Accordion Menu module, but unfortunately that module has issues with Menu Block and other modules... so what's the best way to implement the jQuery ...
0
votes
0answers
19 views

All my Js are called in the body, how can I fix that situation?

I a have a drupal 6 website to fix. All the scripts are called in the body, even with the scope value set to "header" or "footer" in the drupal_add_js function. It's a problem because some script are ...
1
vote
1answer
43 views

jquery script on view not working when filtering with (ajax on) 'better_exposed_filters' module

i have a script for dealing with node images hover (function ($) { $(function(){ $('.node-photos-teaser').mouseenter(function() { $(this).addClass('photos-hover'); ...
0
votes
2answers
31 views

Jquery update “intterupts” Admin Menu

Drupal 7 system. minimalistic, almost no modules installed and the site works fine. The problem: From the moment I've installed the module Jquery Update, There is no more Dropdown by the Admin Menu ...
0
votes
1answer
33 views

jQuery doesn't work on new hosting

I'm using small jQuery script to change src argument on img tag. It works without any problems on my hosting but after migrating website on client's hosting this script doesn't work at all. I have ...
0
votes
2answers
78 views

How to update to jQuery v1.11.1?

I'm trying to implement a full screen bootstrap carousel base on this tutorial. He mention to use the jQuery version 1.11.1. And I was wondering what is the best way to upgrade to this version. I'm ...
0
votes
0answers
15 views

hide form after ajax finishes

I use a simple form that returns results using ajax (drupal 7 views). I need the form to hide after it returns results - after hitting submit button, wait until ajax finishes. Is it possible to do ...
0
votes
0answers
25 views

How to get HTML Element ID into entity field

I am developing a drupal Commerce site. I have one outstanding issue I cannot find the solution for. When a user clicks on Add to Cart this will take the user through a process to login (if they ...
0
votes
1answer
15 views

jQuery getting loaded twice

I'm using the jQuery Update module and decided to choose a more recent version of jQuery so in the module settings I changed it from 1.7.1 to 1.8.2 The issue I'm having is that the previous version ...
0
votes
0answers
17 views

turn js not working in colorbox but works fine on nodes pages

I have manually integrated turn.js script in my drupal 7 website which works perfectly and converting the images in a flipping book. I did that by creating a content type added a multi value image ...
1
vote
1answer
17 views

Script Not Working [closed]

I am trying to integrate 3rd party jquery plugin Turnjs 3rd edition available on github in my website. For this I have uploaded turnjs script on my server and called it in website through my ...
0
votes
2answers
52 views

drupal_add_js settings and working around the anonymous page cache

What I'm trying to do is allow registered users to configure a few colors on public facing pages (profiles, etc.) and to do so I'm using the ColorField module and a few theme functions. My problem is ...
0
votes
0answers
8 views

Data Selector for Rules not allowing any value but site:current-user:role:

Similar to this Date Selector not showing up in Rules I'm in the rules module and trying to create a "Content is of Type" Condition. I can set the content type to check for but cannot pick anything ...
0
votes
1answer
41 views

Media module - CKEditor embed not working - jQuery is not defined

I'm trying to use the media module along with CKEditor in a Drupal7 build. I've enabled the modules, added the embed media button to the editor's toolbar and it works to a point - the image uploads, ...
0
votes
0answers
14 views

How to: JQuery Colorpicker in a form in FLAT mode

I want JQuery Colorpicker to appear in a form in a Flat mode - allow my site users pick a color of choice. So I did the following: a. installed JQuery Colorpicker field b. created a new custom module ...
0
votes
1answer
46 views

Hiding Field(s) if Date is Expired

I'm using Drupal 7 date field. Using views, when the date has expired, the page goes to a section labeled 'past events.' In the template page, the date and time are both separated for instance. ...
2
votes
1answer
137 views

How do I get a data value after all AJAX calls are complete?

I'm modifying the content of the modal window that pops up when using Linkit module in a WYSIWYG. This modal uses AJAX so I have to use Drupal.behaviors for the first time. My code is structured ...
0
votes
1answer
33 views

Click button to change CSS in D7

I'm trying to create a clickable link that changes the css using jquery. I've tried many approaches and nothing seems to work. Hopefully someone here can push me into the right direction. Button html ...
0
votes
1answer
19 views

Customisable Tabbed Content

Hi guys i'm trying to create a restaurant menu like below: I've created a 'Venues' content type, in which it contain the usual Title, Description, Image and another Taxonomy field for Category (Type ...
0
votes
0answers
50 views

drupal_add_js is removing jQuery

I have the following in my module. drupal_add_js( drupal_get_path('module', 'responsive_videos') . '/js/fluidvids.js', array( 'type' => 'file', 'scope' => 'footer', ...
-1
votes
2answers
50 views

Slider for Select List (Text, Numbers etc) in Views Exposed Filters

I am trying to implement a vertical slider-like select list inside my views-exposed-filters as shown in the image below (on the left sidebar, vertical slider) I am using Drupal 7 and Views 3. I ...
0
votes
1answer
21 views

JQuery Mobile.js for drupal 7

I'm attempting to add the functionality of jQuery's Mobile.js to allow for the vclick event. I already have a website in place. What would be the easiest way to add this functionality for an admin ...
0
votes
1answer
33 views

How to execute jQuery on body elements?

I'm screwing around with jQuery for the first time, and I'm unsure of where to add a call in Drupal to allow it to alter classes of elements within the body tag. I'm looking at utilizing something ...
0
votes
1answer
78 views

Drupal 7 form API auto submitting

I need help with making a drupal form. I've made the form and it works perfectly fine, all it does is capture the email, ip, and date and time of a user. The problem is I don't want the user to have ...
0
votes
2answers
44 views

Drupal behaviors with non-core jquery

For various reasons I am currently working on a module with a version of jQuery and jQuery UI that is not core. In other words, scripts[]=js/jquery.js scripts[]=js/jquery-ui.js are declared in the ...
0
votes
0answers
28 views

Why is Views not rendering any Content

Why would Views not be showing its contents, for example... Here's what I have in the source code, this is a straight view source from the browser. <div class="view view-full-bg-homepage-slider ...
0
votes
1answer
19 views

Extra handler breaks Datepicker field

Problem I have a form which a user can create data with and some of the fields are date fields which use jQuery datepicker. The form is long and in order to help the user out, I have a series of ...
0
votes
1answer
23 views

I want to navigate to particular tab on clicking of particular menu item

This is my menu This is my Media page on that I have 2 tabs for that I have used UI Tabs jQuery I'm using Drupal 7 menus i.e main menu, I want when user clicks on the News from the menu item it ...
0
votes
1answer
37 views

Drupal 6 not playing nice with jquery 1.11.1

I am trying to incorperate a sequential fadIn of several img using a simple Jquery script $(document).ready(function(){ $(".fadeInCopy").each(function(index) { ...
0
votes
1answer
34 views

Can the jQuery global $ be protected from external Javascript?

I'm working on a Drupal 6 site that uses the Regpacks signup form service, and apparently the iFrame it creates includes Javascript that redefines the $ global as a function. So any Javascript on the ...
0
votes
0answers
14 views

print commerce line items separately from order

I want to print a receipt for each line item in an order either as the order is saved. Think of each line item as a ticket and instead of printing a receipt for the order containing information about ...
0
votes
0answers
20 views

Jquery Not Executing All Parts When Using Jscroll

I am using Jscroll to implement an infinite scroll retrieved by a custom module in Drupal 7. The infinite scroll is implemented via Jscroll and works fine. The only issue is that after scrolling to ...
0
votes
0answers
46 views

Real-time preview of node/form in Drupal 7

I'm trying to achieve this in Drupal 7. This is what I need URL for working example (But its not in Drupal). Requirement - Live Preview with alignment features From Drupal.Stackexchange I've came ...
0
votes
1answer
65 views

Calling a grandparent JS function that includes jquery from a nested iFrame. D7

I'm calling the grandparent_func from a second-level nested iframe like so. This works in a non-Drupal environment, but am getting the following errors when running in drupal. (yes. I did remember to ...