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
43,625 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
36,136 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,680 points
24,190 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
23,128 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,690 points
22,062 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
20,810 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
20,340 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,690 points
20,050 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
19,775 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
18,474 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,680 points
17,789 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,690 points
16,195 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,680 points
16,105 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,680 points
15,488 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
15,463 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
14,851 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,745 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,690 points
14,666 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
13,967 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,680 points
13,757 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,690 points
13,328 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
12,125 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
11,180 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,690 points
10,653 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,690 points
10,592 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,690 points
10,424 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,680 points
10,409 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,690 points
9,652 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
9,443 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,690 points
9,371 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
9,221 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
8,778 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
8,287 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,680 points
8,099 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,857 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,730 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,726 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,690 points
7,506 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
7,160 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,680 points
7,097 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,917 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,685 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
6,520 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
6,394 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
6,351 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,690 points
6,077 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
6,029 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,690 points
5,723 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,690 points
5,621 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,527 views