Most answered questions in JQuery

0 votes
1 answer

jQuery.inArray(), how to use it right?

The jQuery inArray() method is used to find ...READ MORE

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

jQuery multiselect drop down menu

Show activity on this post. Download jquery.multiselect. Include the ...READ MORE

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

A simple jQuery form validation script

use jQuery validation plugin to validate forms' ...READ MORE

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

How to add class using jQuery?

Add a class name to the first ...READ MORE

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

Pure JavaScript equivalent of jQuery's $.ready() - how to call a function when the page/DOM is ready for it

The simplest thing to do in the ...READ MORE

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

Telerik UI controls vs client-side UI with jQuery

I've used Telerik and JQuery for years. ...READ MORE

Jun 1, 2022 in JQuery by Edureka
• 13,670 points
323 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,569 views
0 votes
1 answer

jQuery 'input' event

oninput event is very useful to track input ...READ MORE

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

Ajax load issues with space in url

You should URL encode the message body ...READ MORE

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

Ajax load issues with space in url

You should URL encode the message body ...READ MORE

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

Download a file by jQuery.Ajax

Downloading files using AJAX method $("#FileDownloadBtn"). click(function () ...READ MORE

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

How can I refresh a page with jQuery?

Use the JavaScript location. reload() Method You can simply ...READ MORE

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

jQuery using "show more" button and html table

function myFunction() { var dots = ...READ MORE

May 30, 2022 in JQuery by gaurav
• 23,260 points
4,128 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,437 views
0 votes
1 answer

JQuery class selectors like $(.someClass) are case sensitive?

jQuery attribute value selectors are generally case-sensitive. ...READ MORE

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

Listening for Youtube Event in JavaScript or jQuery

I'm trying to get the onStateChange event ...READ MORE

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

jQuery onclick toggle class name

jQuery toggleClass () method  The tokenClass () ...READ MORE

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

Best cross-browser method to capture CTRL+S with JQuery?

$(window).keypress(function(event) { if ...READ MORE

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

jQuery's .on() method combined with the submit event

You need to delegate event to the ...READ MORE

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

What is the difference between AJAX with JavaScript and jQuery?

JavaScript is a programming language. JQuery is ...READ MORE

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

Opposite to jQuery's .Closest (Top/Far-Most?)

.menu .sub - menu ...READ MORE

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

Jquery resize image with a heart beat effect

This code should work  (function pulse(back) { $('#seventyfive img').animate( ...READ MORE

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

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

To answer your question, the document.ready is ...READ MORE

Feb 23, 2022 in JQuery by Aditya
• 7,680 points
1,432 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,802 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,203 views
0 votes
1 answer

How to remove an item from a select box?

Hii, Remove an option: $("#selectBox option[value='option1']").remove(); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <select name="selectBox" id="selectBox"> ...READ MORE

Nov 26, 2020 in JQuery by Niroj
• 82,880 points
826 views
0 votes
1 answer

How to Disabling and enabling a html input button?

Hello @kartik, Using jQuery Disabling a html button $('#Button').attr('disabled','disabled'); Enabling a ...READ MORE

Nov 26, 2020 in JQuery by Niroj
• 82,880 points
1,125 views
0 votes
1 answer

How to scroll HTML page to given anchor?

Hello @kartik, Try this: function scrollTo(hash) { ...READ MORE

Nov 26, 2020 in JQuery by Niroj
• 82,880 points
1,122 views
0 votes
1 answer

How to disable HTML links using jquery?

Hello @kartik, Got the fix in css. td.disabledAnchor a{ ...READ MORE

Nov 26, 2020 in JQuery by Niroj
• 82,880 points
2,105 views
0 votes
1 answer

How can selector expression to not select elements with a specific class?

Hello @kartik, You need the :not() selector: $('div[cla ...READ MORE

Nov 26, 2020 in JQuery by Niroj
• 82,880 points
593 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,981 views
0 votes
1 answer

What is the difference between jQuery: text() and html() ?

Hello @kartik, The text() method entity-escapes any HTML that is ...READ MORE

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

How to Get the real width and height of an image with JavaScript?

Hello, Webkit browsers set the height and width ...READ MORE

Nov 25, 2020 in JQuery by Niroj
• 82,880 points
524 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,364 views
0 votes
1 answer

How can I convert a DOM element to a jQuery element?

Hello, Use this: var elm = document.createElement("div"); var jelm = ...READ MORE

Nov 25, 2020 in JQuery by Niroj
• 82,880 points
2,151 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,414 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,467 views
0 votes
1 answer

How to add a “readonly” attribute to an <input>?

Hello, For jQuery <1.9 $('#inputId').attr('readonly', true); ...READ MORE

Nov 24, 2020 in JQuery by Niroj
• 82,880 points
1,461 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
10,082 views
0 votes
1 answer

How to set jquery input select all on focus?

Hello @kartik, Try using click instead of focus. It seems to ...READ MORE

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

How can I determine the direction of a jQuery scroll event?

Hello @kartik, Check current scrollTop vs previous scrollTop var lastScrollTop = 0; $(window).scroll(function(event){ ...READ MORE

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

How to set upload_max_filesize in .htaccess?

Hello @kartik, php_value upload_max_filesize 30M is correct. You will ...READ MORE

Oct 27, 2020 in JQuery by Niroj
• 82,880 points
3,750 views
0 votes
1 answer

How to set data attributes in HTML elements?

Hello @kartik, HTML <div id="mydiv" data-myval="10"></div> JS var a = $('#mydiv').data('myval'); ...READ MORE

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

How to wait until an element exists?

Hello @kartik, DOMNodeInserted is being deprecated, along with the ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,880 points
4,657 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,678 views
0 votes
1 answer

How to get the first element of an array?

Hello @kartik, Try this: alert(ary[0]) Hope it helps!! Thank you ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,880 points
931 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,901 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,511 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,010 views
0 votes
1 answer

How do I check if the mouse is over an element in jQuery?

Hello @kartik, Use this code: $("someelement").mouseenter(function(){ ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,880 points
2,090 views