Most viewed questions in JQuery

0 votes
1 answer

How to pass parameters in GET requests with jQuery?

Hello, Here is the syntax using jQuery $.get $.get(url, data, ...READ MORE

Apr 28, 2020 in JQuery by Niroj
• 82,880 points
41,860 views
0 votes
1 answer

How to Smooth scroll to div id jQuery?

Hello @kartik, You need to animate the html, body $("#button").click(function() ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,880 points
34,661 views
0 votes
1 answer

Uncaught Error: Bootstrap's JavaScript requires jQuery

Hello @kartik, You have provided wrong order for ...READ MORE

Apr 28, 2020 in JQuery by Niroj
• 82,880 points
22,480 views
0 votes
1 answer

How to check a radio button with jQuery?

We can check the status of a ...READ MORE

Jun 10, 2022 in JQuery by rajatha
• 7,640 points
22,154 views
0 votes
1 answer

How to change color of SVG image using CSS (jQuery SVG image replacement)?

Edit your SVG file, add fill="currentColor" to ...READ MORE

Jun 1, 2022 in JQuery by Edureka
• 13,670 points
21,492 views
0 votes
1 answer

jQuery Event : Detect changes to the html/text of a div

Hello, If you don't want use timer and ...READ MORE

Nov 25, 2020 in JQuery by Niroj
• 82,880 points
19,234 views
0 votes
1 answer

Download pdf file using jquery ajax

Download PDF file with button click using ...READ MORE

May 30, 2022 in JQuery by gaurav
• 23,260 points
19,106 views
0 votes
1 answer

How do I format date in jQuery datetimepicker?

jquery datepicker format” Code Answer's $('#timePicker'). datetimepicker({ // dateFormat: ...READ MORE

Jun 3, 2022 in JQuery by Edureka
• 13,670 points
18,311 views
0 votes
1 answer

How to Get Currently Selected Tab Index In jQuery UI Tabs?

Hello @kartik, If you need to get the ...READ MORE

Sep 10, 2020 in JQuery by Niroj
• 82,880 points
17,389 views
0 votes
1 answer

Difference between $(window).load() and $(document).ready() functions

The key difference between $(document). ready() and ...READ MORE

Jun 17, 2022 in JQuery by rajatha
• 7,640 points
16,622 views
0 votes
1 answer

How to add Indian Rupee Currency symbol in Google Spreadsheet

Insert the Rupee Sign in Google Sheets (1) ...READ MORE

Jun 9, 2022 in JQuery by gaurav
• 23,260 points
15,474 views
0 votes
1 answer

Jquery validation plugin - TypeError: $(...).validate is not a function

The "$(...). validate is not a function" ...READ MORE

Jun 28, 2022 in JQuery by rajatha
• 7,640 points
14,498 views
0 votes
1 answer

Uncaught TypeError: Cannot read property 'msie' of undefined - jQuery tools

Hello, Use the following script tag in your ...READ MORE

Apr 28, 2020 in JQuery by Niroj
• 82,880 points
14,329 views
0 votes
1 answer

How to trigger a click on a link using jQuery

If you are trying to trigger an ...READ MORE

Jun 3, 2022 in JQuery by Edureka
• 13,670 points
14,167 views
0 votes
1 answer

Error:jQuery scrollTop not working in Chrome but working in Firefox

Hello @kartik, If your CSS html element has the following overflow markup, scrollTop will ...READ MORE

May 29, 2020 in JQuery by Niroj
• 82,880 points
14,120 views
0 votes
1 answer

How to reset a form using jQuery with .reset() method

<input type="reset"> Syntax for reset(): formObject.reset() Syntax to convert ...READ MORE

Jun 16, 2022 in JQuery by rajatha
• 7,640 points
13,408 views
0 votes
1 answer

What is the equivalent of jQuery .hide() to set visibility: hidden

Hello Kartik, There isn't one built in but ...READ MORE

Apr 28, 2020 in JQuery by Niroj
• 82,880 points
13,216 views
0 votes
1 answer

jQuery disable/enable submit button

To disable a submit button, you just ...READ MORE

Jun 10, 2022 in JQuery by gaurav
• 23,260 points
12,828 views
0 votes
1 answer

How to set the 'selected option' of a select dropdown list with jquery

Using the jQuery change() method; you can ...READ MORE

Jun 17, 2022 in JQuery by rajatha
• 7,640 points
12,742 views
0 votes
1 answer

jQuery Ajax error handling, show custom exception messages

Make sure you're setting Response.StatusCode to something other than ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,670 points
12,089 views
0 votes
1 answer

How do I pre-populate a jQuery Datepicker textbox with today's date?

Hello @kartik, You must FIRST call datepicker() > then use ...READ MORE

May 29, 2020 in JQuery by Niroj
• 82,880 points
11,527 views
0 votes
1 answer

jQuery UI " $("#datepicker").datepicker is not a function"

The "$(...).datepicker is not a function" jQuery ...READ MORE

Jun 6, 2022 in JQuery by Edureka
• 13,670 points
10,967 views
0 votes
1 answer

How to make $.post() use contentType=application/json in jquery?

Hii, Try this: $.ajax({ url:url, type:"POST", ...READ MORE

Nov 24, 2020 in JQuery by Niroj
• 82,880 points
9,930 views
0 votes
1 answer

jQuery find all elements with class beneath parent, even in children elements

Remove > from your select $(".parent .searchEl"). You can use the .find() method ...READ MORE

Jun 7, 2022 in JQuery by Edureka
• 13,670 points
9,851 views
0 votes
1 answer

jQuery UI DatePicker to show month year only

Here's a hack (updated with entire .html ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,670 points
9,587 views
0 votes
1 answer

addClass and removeClass in jQuery - not removing class

What happens is that your close button ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,670 points
9,245 views
0 votes
1 answer

Get selected value of a dropdown's item using jQuery

Use the jQuery: selected selector in combination ...READ MORE

Jun 3, 2022 in JQuery by Edureka
• 13,670 points
9,198 views
0 votes
1 answer

How can I remove an attribute with jQuery?

The removeAttr() method is an inbuilt method in jQuery ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,670 points
8,731 views
0 votes
1 answer

jQuery text() and newlines

text('this\n has\n newlines); The newline character is \n ...READ MORE

Jun 15, 2022 in JQuery by rajatha
• 7,640 points
8,563 views
0 votes
1 answer

jQuery's .click - pass parameters to user function

Hello @kartik, You need to use an anonymous ...READ MORE

Nov 25, 2020 in JQuery by Niroj
• 82,880 points
8,291 views
0 votes
1 answer

Error: cannot call methods on dialog prior to initialization; attempted to call method 'close'

Hello @kartik, Looks like your buttons are not ...READ MORE

Apr 28, 2020 in JQuery by Niroj
• 82,880 points
7,965 views
0 votes
1 answer

How to close all active bootstrap modals on session timeout?

Hello @kartik, Use the following code: $('.modal').modal('hide'); Also if you ...READ MORE

May 12, 2020 in JQuery by Niroj
• 82,880 points
7,659 views
0 votes
1 answer

TypeError: $(...).autocomplete is not a function

You would definitely have missed the Jquery ...READ MORE

Feb 23, 2022 in JQuery by Aditya
• 7,680 points
7,621 views
0 votes
1 answer

How to import jQuery UI using ES6/ES7 syntax?

Hii, Add a alias in webpack config: resolve: { ...READ MORE

Apr 28, 2020 in JQuery by Niroj
• 82,880 points
7,429 views
0 votes
1 answer

Error:jquery each loop return false not end the function

Hii @kartik, Returning from one function doesn't call as it's ...READ MORE

Jun 2, 2020 in JQuery by Niroj
• 82,880 points
7,306 views
0 votes
1 answer

JQuery string contains check

In this case, we will use the includes() ...READ MORE

Jun 15, 2022 in JQuery by rajatha
• 7,640 points
7,263 views
0 votes
1 answer

Error:Laravel Method paginate does not exist

Hello @kartik, Try this: Dispatch::all() => Returns a Collection Dispatch::all()->where() => Returns a Collection Dispatch::where() => ...READ MORE

Dec 2, 2020 in JQuery by Niroj
• 82,880 points
7,133 views
0 votes
1 answer

How to make a simple modal pop up form using jquery and html?

Create A Modal <button onclick="document.getElementById('id01').style.display='block'" class="w3-button">Open Modal</button> ... <div ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,670 points
6,910 views
0 votes
1 answer

How to find a parent with a known class in jQuery?

Hello @kartik, Assuming that this is .d, you can write $(this).closest('.a'); The closest method returns the ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,880 points
6,594 views
0 votes
1 answer

How to open a Bootstrap 4 modal dialog using jQuery

Use the modal('show') Method You can simply use ...READ MORE

Jun 28, 2022 in JQuery by rajatha
• 7,640 points
6,576 views
0 votes
1 answer

How to pass parameters in GET requests with jQuery?

Hello @kartik, Use data option of ajax. You ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,880 points
6,449 views
0 votes
1 answer

How to upload excel file to php server from <input type="file">

You first need to upload the file ...READ MORE

Jun 9, 2022 in JQuery by gaurav
• 23,260 points
6,087 views
0 votes
1 answer

How do I check if file exists in jQuery or pure JavaScript?

Hello @kartik, With jQuery: $.ajax({ url:'http://www.example.com/somefile.ext', ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,880 points
5,964 views
0 votes
1 answer

How to change options of <select> with jQuery?

Hello @kartik, You can remove the existing options ...READ MORE

Nov 25, 2020 in JQuery by Niroj
• 82,880 points
5,930 views
0 votes
1 answer

Error: cannot call methods on button prior to initialization; attempted to call method 'loading'

Hii @kartik, It's caused by jquery-ui and bootstrap-button ...READ MORE

May 12, 2020 in JQuery by Niroj
• 82,880 points
5,651 views
0 votes
1 answer

Get class list for element with jQuery

Use the jQuery attr() Method You can simply use the attr() method ...READ MORE

Jun 1, 2022 in JQuery by Edureka
• 13,670 points
5,485 views
0 votes
1 answer

How to set radio option checked onload with jQuery?

Hii, Say you had radio buttons like these, ...READ MORE

Nov 24, 2020 in JQuery by Niroj
• 82,880 points
5,402 views
0 votes
1 answer

What is the official correct way to declare jQuery variables?

Declare a variable using the var keyword. Initialize ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,670 points
5,165 views
0 votes
1 answer

How can you disable scroll bars in the jQuery UI dialog box?

Hello @kartik, I solved the problem like this: .dialog({ ...READ MORE

May 29, 2020 in JQuery by Niroj
• 82,880 points
5,105 views
0 votes
1 answer

jQuery fix for "Uncaught TypeError: $ is not a function" error

We can fix this error by using jQuery() . ...READ MORE

Jun 1, 2022 in JQuery by Edureka
• 13,670 points
5,045 views