Front End Technology Articles

Page 587 of 652

Why do we use jQuery over JavaScript?

David Meador
David Meador
Updated on 13-Mar-2026 3K+ Views

jQuery is a JavaScript library, so it operates on top of JavaScript. It cannot exist on its own, so you can't use one over the other. You can use just JavaScript or JavaScript and jQuery. jQuery was introduced to make development with JavaScript easier. It will reduce the development time. Use it to add animation and event handling on your website. jQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is easier to use compared to JavaScript and its other JavaScript libraries. You need to write fewer lines of code while using ...

Read More

How to link jQuery from my local machine?

Alex Onsman
Alex Onsman
Updated on 13-Mar-2026 4K+ Views

You can add jQuery using CDN or through downloading it on your local machine. For local installation, download the jQuery library on your local machine and include it in your HTML code. The following are the steps − Go to the jQuery website to download the latest version available. Save the downloaded jquery-3.2.1.min.js file (or the latest version) in a directory of your website, e.g. /jquery. Include the jQuery file in your HTML using the tag with the correct path to your local file. Linking jQuery ...

Read More

Safari on iPad (iOS6) does not scale HTML5 video to fill 100% of page width

Yaswanth Varma
Yaswanth Varma
Updated on 13-Mar-2026 988 Views

This article will teach you how Safari on iPad iOS6 does not scale HTML5 video to fill 100% of page width. On a responsive HTML5 page, a video can be shown at full width (100%) by applying CSS styling. The video's native resolution is 480x270. On all desktop browsers, the video is resized to span the entire width of the page while preserving the aspect ratio. On the iPad (iOS 6.0.1), Mobile Safari and Chrome, however, display a black rectangle same width as the page. The black rectangle's center contains a small video that is shown at its original ...

Read More

Create a tabbed navigation menu with Bootstrap

AmitDiwan
AmitDiwan
Updated on 12-Mar-2026 380 Views

To create a tabbed navigation menu, start with a basic unordered list with the base class of .nav and add class .nav-tabs. The navigation tab looks like the following on a web page − Create a Navigation tab Create a navigation tab with nav and nav-tabs − Home About Products Contact Us Set the Current Page Above, we have set the Home as active, since we wanted it to be the current page − Home Create a Tabbed Navigation Menu with ...

Read More

How to clear HTML form fields with jQuery?

usharani
usharani
Updated on 11-Mar-2026 2K+ Views

With jQuery, you can easily clear HTML form fields. For this, jQuery: reset Selector is used. This will clear the HTML form fields.ExampleYou can try to run the following code to clear form fields with jQuery −                          $(document).ready(function(){             $(":reset").css("background-color", "#F98700");          });                              Student Name          Student Subject                              

Read More

How to get objects by ID, Class, Tag, and Attribute in jQuery?

Amit D
Amit D
Updated on 11-Mar-2026 1K+ Views

Here’s how you can get objects by ID Selector (#id), by Class Selector (.class), by Tag, and Attribute (.attr()).Get Object by Class SelectorExampleThe element class selector selects all the elements which match with the given class of the elements.           jQuery Selector                          $(document).ready(function() {                 $(".big").css("background-color", "yellow");          });                                  This is first division ...

Read More

How to traverse Data Object Model (DOM) nodes using jQuery?

David Meador
David Meador
Updated on 11-Mar-2026 484 Views

jQuery traversing is used to find elements based on what is their relation twith other elements. You need to begin with one selection and move ahead till you the reach the elements you want.jQuery is a very powerful tool which provides a variety of DOM traversal methods to help us select elements in a document randomly as well as in sequential method.Let’s filter out the elements by traversing. The filter( selector ) method can be used to filter out all elements from the set of matched elements that do not match the specified selector(s).ExampleThe selector can be written using any ...

Read More

What is the difference between jQuery.map() and jQuery.grep() Functions in jQuery?

David Meador
David Meador
Updated on 11-Mar-2026 633 Views

The jQuery map function translates a set of elements in the jQuery object into another set of values in a jQuery array which may, or may not contain elements. The grep() function is used to find an element of an array. The difference is we use $.grep to filter an array and $.map to apply a function to each item in the array.jQuery map functionThe map method translates a set of elements in the jQuery object into another set of values in a jQuery array which may, or may not contain elements.The following are the parameters of jQuery.map() method:callback − ...

Read More

What is the difference between jQuery.map() and jQuery.each() Functions in jQuery?

David Meador
David Meador
Updated on 11-Mar-2026 449 Views

jQuery map functionThe map method translates a set of elements in the jQuery object into another set of values in a jQuery array which may, or may not contain elements.ExampleYou can try to run the following code to learn how to work with jQuery.map() method:           jQuery Map Method                              $(document).ready(function(){                         var mappedItems = $("li").map(function (index) {                var replacement = $("").text($(this).text()).get(0); ...

Read More

What is the difference between jQuery.children( ) and jQuery.siblings( ) in jQuery?

David Meador
David Meador
Updated on 11-Mar-2026 500 Views

jQuery children() methodThe children( [selector] ) method gets a set of elements containing all of the unique immediate children of each of the matched set of elements.Here is the description of all the parameters used by this method −selector − This is an optional argument to filter out all the childrens. If not supplied then all the childrens are selected.ExampleYou can try to run the following code to learn how to work with jQuery children() method:           jQuery children() method                          $(document).ready(function(){     ...

Read More
Showing 5861–5870 of 6,519 articles
« Prev 1 585 586 587 588 589 652 Next »
Advertisements