Do you use jQuery instead of JavaScript?
Last updated by Brook Jeynes [SSW] over 1 year ago.See historyjQuery is the MUST HAVE tool for web developers. There are 3 good reasons why you should use jQuery.
- Cross Browsers (Edge, Firefox, Safari, Opera, Chrome)
-
Powerful and easy to use
- Same selectos as CSS
- Designer can learn it fast
- More readable JavaScript code
- Plugins - Tons of useful plugins and functionalities
window.onload = function () {
alert("Welcome");
};
Figure: Bad example - Using JavaScript 'onload' event
$(document).ready(function () {
alert("Welcome!");
});
Figure: Good example - Using jQuery document 'ready' event