tagged [jquery]

jQuery - get all divs inside a div with class ".container"

jQuery - get all divs inside a div with class ".container" I got a menu containing links: Now i need to find all divs with an css `#ID` who are first level DOM elements inside the `.container` div. Th...

21 Dec at 21:35

How to get an Array with jQuery, multiple <input> with the same name

How to get an Array with jQuery, multiple with the same name I have a form where users can add input fields with jQuery. After submitting the form I get an array in PHP. I want to handle this with the...

21 Dec at 20:47

jQuery: Setting select list 'selected' based on text, failing strangely

jQuery: Setting select list 'selected' based on text, failing strangely I have been using the following code (with jQuery v1.4.2) to set the 'selected' attribute of a select list based on its 'text' d...

21 Dec at 20:37

jquery - How to determine if a div changes its height or any css attribute?

jquery - How to determine if a div changes its height or any css attribute? How can I trigger an event when a div changes its height or any css attribute? I have a div with id = `mainContent`. I want ...

21 Dec at 20:32

How to get the class of the clicked element?

How to get the class of the clicked element? I can't figure it out how to get the `class` value of the clicked element. When I use the code below, I get `"node-205"` every time. jQuery: ``` .find('> u...

21 Dec at 14:36

jquery <a> tag click event

jquery tag click event I am building a code which displays user information on search. User information, is then displayed in a `fieldset`, and a image, first name, last name and few profile info. is ...

21 Dec at 04:58

How to get ID of clicked element with jQuery

How to get ID of clicked element with jQuery I have the following html: and the following jQuery script: ``` $(document).ready(function() { var $container = $('.gallery_r').cycle({ fx: 'scro...

21 Dec at 04:51

Regex for allowing alphanumeric,-,_ and space

Regex for allowing alphanumeric,-,_ and space I am searching for a regular expression for allowing alphanumeric characters, -, _ or spaces in JavaScript/jQuery. How can this be done?

21 Dec at 04:30

set div height using jquery (stretch div height)

set div height using jquery (stretch div height) I have 3 divs with ids `header`, `content` and `footer`. Header and footer has fixed height and they are styled to float on top and bottom. I want the ...

20 Dec at 00:53

Auto-click button element on page load using jQuery

Auto-click button element on page load using jQuery If I wanted to auto-click a button element on page load, how would I go about this using jQuery? The button html is

how to check confirm password field in form without reloading page

how to check confirm password field in form without reloading page I have a project in which I have to add a registration form and I want to to validate that the password and confirm fields are equal ...

19 Dec at 21:10

How to use jQuery Plugin with Angular 4?

How to use jQuery Plugin with Angular 4? I want to use a range slider in an angular project and I tried using one available module for angular 4. It works fine during compilation but when I try to bui...

19 Dec at 19:52

how to remove pagination in datatable

how to remove pagination in datatable I have used Datatables in grid but need not pagination. There is a list of orders in one page and I show them in a Datatable grid but in bottom I do not want to s...

18 Dec at 22:43

datatable jquery - table header width not aligned with body width

datatable jquery - table header width not aligned with body width I am using jQuery datatables. When running the application, the header width is not aligned with the body width. But when I click on t...

18 Dec at 21:13

Bootstrap modal: close current, open new

Bootstrap modal: close current, open new I have looked for a while, but I can't find a solution for this. I want the following: - - -

18 Dec at 21:13

How do I create a link using JavaScript?

How do I create a link using JavaScript? I have a string for a title and a string for a link. I'm not sure how to put the two together to create a link on a page using JavaScript. Any help is apprecia...

17 Dec at 00:11

How do I trigger an HTML button when the “Enter” key is pressed in a textbox?

How do I trigger an HTML button when the “Enter” key is pressed in a textbox? So the code that I have so far is: It is not in a `` and is just as it is within a ``. However when I type something into ...

15 Dec at 04:9

In jQuery, how to detect specified string while user is typing it?

In jQuery, how to detect specified string while user is typing it? Much like when typing a comment on Facebook and you hit @username, it reacts to that, letting you choose a username inline. Using jQu...

12 Dec at 15:36

How to delete a localStorage item when the browser window/tab is closed?

How to delete a localStorage item when the browser window/tab is closed? My Case: localStorage with key + value that should be deleted when browser is closed and not single tab. Please see my code if ...

6 Dec at 06:45

Twitter Bootstrap Use collapse.js on table cells [Almost Done]

Twitter Bootstrap Use collapse.js on table cells [Almost Done] I am working on an accounts page that lists transactions (credits and debits). I would like the user to be able to click on a table row a...

18 Nov at 18:38

How to check if all inputs are not empty with jQuery

How to check if all inputs are not empty with jQuery I need to validate a form with jQuery. I can check all my inputs one by one, but it's not a very practical solution. How can i check if all my inpu...

17 Nov at 09:29

Making a Simple Ajax call to controller in asp.net mvc

Making a Simple Ajax call to controller in asp.net mvc I'm trying to get started with ASP.NET MVC Ajax calls. ```

jQuery ajax request being block because Cross-Origin

jQuery ajax request being block because Cross-Origin How to get content from remote url via ajax? jQuery ajax request being block because Cross-Origin > Cross-Origin Request Blocked: The Same Origin P...

13 Nov at 08:33

How to move an element into another element

How to move an element into another element I would like to move one DIV element inside another. For example, I want to move this (including all children): into this: so that I have this:

12 Nov at 05:3

Getting TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode

Getting TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode I have the following jQuery code: ``` $(document).ready(function() { $('.btn-create-post-card').on...

10 Nov at 20:44