Shubham Vora has Published 962 Articles

How to reset selected value to default using jQuery?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 14:08:38

13K+ Views

While creating the web page, developers may require to reset the selected option for the dropdown menu. For example, we added the dropdown menu in the form allowing users to select any option. Once users submit the form, we require to reset the dropdown menu options using JavaScript or Jquery. ... Read More

How to replace an HTML element with another one using JavaScript?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 12:45:45

13K+ Views

In this tutorial, we will learn to replace an HTML element with another one using JavaScript. In some use cases, we require to replace a whole HTML element with a different one. For example, it is very important in the form validation. Suppose we are taking the user’s age from ... Read More

How to remove underline from link using JavaScript?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 12:39:36

807 Views

Whenever we use tag in the HTML, it shows the anchor text with the underline on the web page. Sometimes, underlining looks very annoying, and we require to remove the underline from JavaScript. The ‘textDecoration’ property of the style object allows developers to remove the line from the anchor ... Read More

How to remove global CSS file from a particular page using jQuery?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 12:32:56

1K+ Views

Programmers require to use CSS while developing the web page to style the web page and make it attractive. We can add CSS to the web page in three ways: inline CSS, Internal CSS, and external CSS. To apply external CSS, we can import the CSS file in the ... Read More

How to Remove Column from HTML Table using JavaScript?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 12:22:01

2K+ Views

In HTML, the table is used to show the data on the web page in a formatted way. The table contains the columns and rows to show the data. Sometimes, developers need to delete the table column or allow users to delete them. For example, the table contains the ... Read More

How to remove an added list items using JavaScript?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 12:12:02

5K+ Views

In HTML, developers can use the ‘ul’ tag to create a list of items. We can add all related items to the single list. We can also manage the list items using JavaScript. Sometimes, developers require to add or remove list items using JavaScript. We can access the list items ... Read More

How to remove “disabled” attribute from HTML input element using JavaScript?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 12:07:38

3K+ Views

In HTML, we can use input elements to take input from the users by creating a form or in any other way. There are different types of input elements, such as checkboxes, radio buttons, text, numbers, etc. We can use the ‘disabled’ property with every element to disable the ... Read More

How to read all spans of a div dynamically?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 12:02:03

742 Views

One HTML element can contain multiple nested HTML elements while creating web pages. In some cases, developers may require to read the particular HTML elements of one HTML element. In our case, we require to read all span elements of the div element and extract the content of them. In ... Read More

How to prevent Body from scrolling when a modal is opened using jQuery?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 11:52:43

23K+ Views

A modal is a special user interface that we show on top of all the content of the web page. It is used to show some special information on the web page or move users out from the regular flow of the web page. For example, you may have seen ... Read More

How to play a notification sound on websites?

Shubham Vora

Shubham Vora

Updated on 17-May-2023 11:31:23

5K+ Views

Nowadays, web development continues to evolve and find new ways to improve the user experience. One way to improve the user's experience is by adding notifications to the website to notify users of any event. Before we start with the tutorial, let’s understand why we need notifications with sounds on ... Read More

Advertisements