Tag: jquery

56 votes
20 answers
1.7K views
How to insert an item into an array at a specific index (JavaScript)

I am looking for a JavaScript array insert method, in the style of: arr.insert(index, item) Preferably in jQu

avatar
Arline
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
1.8K views
Setting "checked" for a checkbox with jQuery

I'd like to do something like this to tick a checkbox using jQuery: $(".myCheckBox").checked(true); or

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
1.4K views
How do I check whether a checkbox is checked in jQuery?

I need to check the checked property of a checkbox and perform an action based on the checked property using j

avatar
Charis
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
776 views
How to return the response from an asynchronous call

I have a function foo which makes an asynchronous request. How can I return the response/result from foo? I am

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
54 votes
30 answers
2.8K views
56 votes
30 answers
2.5K views
How do I check if an element is hidden in jQuery?

Is it possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle()? How

avatar
Vi
0 1 0 9
asked 07 September, 2021
62 votes
9 answers
2.2K views
Cannot read property 'push' of undefined when combining arrays

When pushing an array's contents to another array I get "Uncaught TypeError: Cannot read property &a

avatar
Mikki
0 1 0 9
asked 07 September, 2021
55 votes
2 answers
413 views
How to load an external webpage into a div of a html page

I need to load a responsive website into a div in my HTML page without using an iframe element. I have tried

avatar
Vi
0 1 0 9
asked 07 September, 2021
59 votes
1 answers
1K views
Jquery ui - sortable: drag by icon 'handle' within sortable element

I have jquery ui sortables working fine but my sortable elements have other interactive elements within them.

avatar
Wei
0 1 0 9
asked 07 September, 2021
55 votes
16 answers
2.9K views
Cannot open local file - Chrome: Not allowed to load local resource

Test browser: Version of Chrome: 52.0.2743.116 It is a simple javascript that is to open an image file from

avatar
Wilber
0 1 0 9
asked 07 September, 2021