Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 39052

Use for questions about JavaScript code that is very specific to Drupal.

2 votes
Accepted

jQuery - 'once' won't apply a toggleclass after a click action

You should have unique id's (#id-name) and as many elements as you would like sharing the same class (.class-name). I mean, you should not have multiple elements with same id inside HTML. Also, you ca …
W.M.'s user avatar
  • 732
0 votes

Turning View into flashcard

Views can render both question and answer. Beyond that you need jQuery and CSS for the hide/show/flip effects.
W.M.'s user avatar
  • 732
0 votes
1 answer
853 views

Submitting a form with AJAX causes page reload but only on mobile

I am submitting the user profile edit form by hooking the user profile edit form like this: $form['actions']['submit']['#ajax'] = array( 'callback' => 'user_profile_submit', 'wrapper' => $form['#attr …
W.M.'s user avatar
  • 732
1 vote
Accepted

Submitting a form with AJAX causes page reload but only on mobile

Solved: I have just downloaded the latest development version of jQuery Update module and the problem was solved. It has to do with this module nothing else.
W.M.'s user avatar
  • 732
1 vote

How to submit a form with javascript?

The following would do the job: jQuery('#edit-submit-studio-locations').mousedown();
W.M.'s user avatar
  • 732