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
0answers
3 views

Reset a page with multiple exposed filters

I have a view page which is the main page on my website. It is kind of a search using exposed filters. As I have many exposed filters I installed the module MEFIBS which allows me to split the exposed ...
-2
votes
0answers
15 views

Drupal & Bootstrap Javascript issue [on hold]

So I have Drupal using the Bootstrap theme (properly subtheme'd), jQuery Update plugin (using 1.10), LESS Compiler with Libraries. For the life of me, I can not figure out why the Carousel JS in ...
1
vote
0answers
12 views

Is it possible to build a form with jQuery and still use ajax elements and Drupal 7 Form API?

I have a form built using for the most part many ajax elements within the form api. The form is working if a user is going through it at a normal pace however as this is to be a productivity tool, any ...
0
votes
0answers
14 views

How to add Javascript in Drupal 7 with jQuery?

I am trying to provide the option that users be able to put comment under each paragraph. So at the end of the article, I have something like this: Comments for paragraph 1 /* here I show the ...
0
votes
0answers
20 views

How to add a confirmation dialog for a submit button?

There is a submit button in a form: $form['submit'] = array( '#type' => 'submit', '#value' => t('Submit'), '#submit' => array('_shoes_submit_cart'), ); I'd like to popup a ...
0
votes
0answers
8 views

Creating item library, allowing user to make selections and publish to another page

Above is a rough MS paint concept I banged out to illustrate what I'm trying to do. I need to create a library of items, which have pictures, descriptions, names, etc. This library will be ...
-1
votes
0answers
8 views

Drupal newbie looking to remove page border from jQuery UI tabs widget

Does anyone know how to remove the page border when using the jQuery UI tabs widget in the Drupal 7? These are the pre-loaded tabs implemented with the html tags: [tabs]...[/tabs], i.e. there's no ...
1
vote
0answers
12 views

How to use photoswipe script in Drupal 7

I want to use photoswipe script on my site to preview images. I downloaded the script, copied two JS files code-photoswipe-1.0.11.min.js and simple-inheritance.min.js. Include them in a file ...
-1
votes
0answers
17 views

tabledrag.js multivalue fields reversed ordering

Iam experiencing a problem with multivalue fields on node edit page. After some time of developing my site I have noticed that all multivalued fields are displayed in reversed order (before - the ...
0
votes
0answers
17 views

Vegas background jquery plugin: zoom in effect on each slide before fade in to next

I'm using the vegas background jquery plugin (= full screen background slideshow) And now I want to add a zoom in effect on each slide during the duration this slide/image is shown and thus before it ...
1
vote
1answer
30 views

advagg drupal module breaking my js file

I am using advagg module to improve my website performance and I also using date picker jquery UI function for date functionality. I have datePicker intialization $( "#datepicker" ).datepicker(); . ...
0
votes
1answer
22 views

How can I include a custom JavaScript file such that it can access and bind events to DOM elements?

This is my first time writing custom JavaScript for Drupal, and at the moment I am attempting to bind onClick events to buttons within a block generated by a view, but I suspect I am approaching this ...
-2
votes
0answers
28 views

Bootstrap / Jquery vs. Drupal [closed]

Anyone who has a good solution for the following problem? I am using Bootstrap and Drupal 7, so things like tabs.js (part of bootstrap), are using the $-sign for jQuery. But as it seems drupal does ...
1
vote
1answer
45 views

Jquery breaks on ajax run

I am using field collection & availaibility calendar module, I added a field collection in a content type as a field with unlimited option in field edit. now i have added a availability calendar ...
0
votes
0answers
24 views

Writing to the database via a jQuery toggle button?

I am using this jQuery plugin to render a toggle button in a block. When the button is toggled off/on I want to write to a databse table. The code below is working. When I toggle the button I can see ...
0
votes
1answer
34 views

Submit few forms in Drupal 7

I try to add Poll-voting to my website, on page I addet 5 votings forms, I try to make submission of all 5 forms by one click instead of 5 clicking. I wrote this script : <script ...
0
votes
0answers
13 views

Is there a jQuery container selector for CCK fields?

I'm using a Drupal module called FitVids, which makes iframe videos and images responsive. But i'm also using the YouTube Field module and the fitvids module is distorting the YouTube Field module's ...
0
votes
0answers
9 views

when i onclick radio button then it's value should display in textfield [duplicate]

here i have two radio buttons radio button "One" and radio button "Two", when i click/check on radio button "One" then then it's value should display in textfield of "Display". ...
0
votes
1answer
41 views

when i onclick radio button then it's value should display in textfield

above is the sample screenshot of my form where i would like to do is: when i click/check on radio button "One" then then it's value should display in textfield of "Display". Code: function ...
0
votes
0answers
13 views

How to check in ajaxSuccess function if specific dom element has a particular class?

I have a view with two tabs. Basically, it is a view with a map of events on it and attached display to the map which lists the events. The view has an exposed filter which allows searching by ...
0
votes
0answers
17 views

jquery multi doesn't work for IE

I have a jquery plugin which requires jquery 1.7 and up but the site uses a lower version. Originally, I fixed the issue by adding this in the view alter ...
0
votes
0answers
21 views

Drupal custom form with AJAX and javascript event

I have a custom form that is displayed in a custom block. That block is a popup div. When a user fills the form successfully it's displaying success message. I want to attach a jQuery that will ...
0
votes
2answers
26 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
26 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
16 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
27 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
20 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
171 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
23 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
1answer
31 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
84 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
28 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
23 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
25 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
41 views

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

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
27 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
77 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
91 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
81 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
46 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
36 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 ...
1
vote
2answers
138 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
21 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
28 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
16 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
32 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
20 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
73 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 ...