- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
David Meador has Published 164 Articles
David Meador
3K+ Views
Both the methods are used in jQuery. Let’s see what purpose they fulfill.$(window).load()The code which gets included inside $( window ).on( "load", function() { ... }) runs only once the entire page is ready (not only DOM).Note: The load() method deprecated in jQuery version 1.8. It was completely removed in ... Read More
David Meador
749 Views
jQuery effect methods are used to create custom animation effects. The following are some of the methods used to provide effects in jQuery −S.NoMethodDescription1animate()Custom animation on the selected elements2clearQueue()To remove remaining queued functions from the selected elements3delay()To set a delay for all queued functions on the selected elements4dequeue()To remove the ... Read More
David Meador
582 Views
The element class selector selects all the elements which match with the given class of the elements. Use the css() method to change the background color.You can try to run the following code to learn how to select an element by its class name using jQuery:Live Demo ... Read More
David Meador
541 Views
To select an element with multiple classes, do the following. Here, x, y, and z are our classes, $('.x.y.z')You can try to run the following code to learn how to select an element with multiple classes in jQuery:Live Demo jQuery Selector Example ... Read More
David Meador
2K+ Views
Calling a JavaScript library function is quite easy. You need to use the script tag. As almost everything we do when using jQuery reads or manipulates the document object model (DOM), we need to make sure that we start adding events etc. as soon as the DOM is ready.If you ... Read More
David Meador
3K+ Views
To workaround with display: none in an element in jQuery, use the hide() method. It will do the same work.ExampleYou can try to run the following code to learn how to add display:none in an HTML element −Live Demo $(document).ready(function(){ $("button").click(function(){ $("p").removeAttr("style").hide(); ... Read More
David Meador
7K+ Views
To toggle a div visibility in jQuery, use the toggle() method. It checks the div element for visibility i.e. the show() method if div is hidden. And hide() id the div element is visible. This eventually creates a toggle effect.The toggle( speed, [callback]) method toggles displaying each of the set ... Read More
David Meador
172 Views
jQuery error() methodThe error() method triggers the event when an element encounters an error. This method deprecated in jQuery 1.8.ExampleYou can try to run the following code to learn how to work with error() method in jQuery −Live Demo $(document).ready(function(){ $("img").error(function(){ ... Read More
David Meador
500 Views
To use multiple js files, use the same getScript(), which is used to add a single js file. We’re having result.js file with the following code snippet −function CheckJS(){ alert("This is JavaScript - File1"); }We’re having result2.js file with the following code snippet −function CheckJS(){ alert("This is JavaScript ... Read More
David Meador
115 Views
To detect the eventType in jQuery, use the event type property. You can try to run the following code to learn how to detect eventType in jQuery −ExampleLive Demo $(document).ready(function(){ $("p").on("mouseover mouseout", function(event){ $("div").html("Event Type: " + event.type); ... Read More
To Continue Learning Please Login
Login with Google