Found 10483 Articles for Web Development

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

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

2K+ 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 tag using the tag. The external CSS file can also be a global CSS file. Sometimes, we require to remove the global CSS file from a particular web page. For example, you allow your web app users to switch between multiple themes, and when users switch the theme, ... Read More

How to remove CSS property using JavaScript?

Shubham Vora
Updated on 28-Jun-2024 10:18:54

22K+ Views

To remove CSS property using JavaScript, it can be helpful in various aspects like removing unnecessary style property, increase the performance, can be easily maintained and and debugging becomes easier. In this article we are having a div element and in some approaches p element on which some CSS properties have veen applied. Our task is to remove applied CSS property using JavaScript. Approaches to Remove CSS property using JavaScript There are various ways to remove CSS property using JavaScript, here is a list of approaches with step wise explaination and complete example codes. Using ... Read More

How to Remove Column from HTML Table using JavaScript?

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

3K+ 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 users’ data and has the ‘age’ and ‘birthdate’ columns. In such cases, we require to delete the ‘age’ column as we can get the age from the ‘birthdate’ column. Developers can use the deleteCell() method to delete any particular column. In this tutorial, we will learn to delete the ... Read More

How to remove an added list items using JavaScript?

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

7K+ 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 using the particular attribute value and use the removechild() method to remove the list item. In this tutorial, we will take the input from the users, and according to the value, we will remove the list item. Syntax Users can follow the syntax below to remove an added list items ... Read More

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

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

4K+ 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 input field and stop users from interacting with the input element. In some cases, we require to add and remove the disabled attribute using JavaScript. For example, we want to take the pan card numbers of the users whose age is greater than 18. So, we require to enable the ... Read More

How to read all spans of a div dynamically?

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

1K+ 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 this tutorial, we will learn to read the content of all spans of a div element using JavaScript and again append it to the web page in the formatted way. Syntax Users can follow the syntax below to read all spans of a div element dynamically using JavaScript. var spans ... Read More

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

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

25K+ 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 on many websites that subscribe popup box appears on the web page saying to enter your email address to subscribe to the newsletter. Also, the alert box is modal, which doesn’t allow you to interact with the web page content until you close the modal. So, when we show users ... Read More

How to play a notification sound on websites?

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

8K+ 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 the website. Why Add Notification Sounds? As we said above, notification is used to enhance the user experience. We can use it to notify users for a task, such as when users completes the form submission, get a message in the chat app, for reminders, etc. If users are away ... Read More

How to place cursor position at end of text in text input field using JavaScript?

Shubham Vora
Updated on 17-May-2023 11:23:40

11K+ Views

In HTML, the input field is used to take input from the users. Sometimes, we require to take string or long text messages in the input. In these scenarios, users may need to go to the end of the input field to add more content or message. So, we should set up something such that users can click the button, can go to the end of the input field. In this tutorial, we will learn to use JavaScript to place the cursor position at the end of the text in the input field. Using the setSelectionRange() method The setSelectionRange() method ... Read More

How to remove indentation from an unordered list item using CSS?

Tarun Singh
Updated on 13-Aug-2024 17:46:23

7K+ Views

To remove indentation from an unordered list item using CSS, we will be understanding various approaches. Indentation is a common feature used to give a visual hierarchy to the list items. In this article, we will be going through five different approaches to remove indentation from an unordered list item using CSS. We are having an unordered list of different programming languages, our task is to remove the indentation from unordered list using CSS. Approaches to Remove Indentation from an Unordered List Item Here is a list of approaches to remove indentation from an unordered list item using CSS which ... Read More

Advertisements