Found 10711 Articles for Web Development

How to set the background color for an element using jQuery?

Tarun Singh
Updated on 10-May-2023 13:26:28

1K+ Views

jQuery- a very popular JavaScript tool that helps in simplifying the process of web development consists of various tools that can be used to manipulate the HTML elements, CSS properties, and even event handling. Adding new or modifying styles of an HTML element dynamically is one such task that requires based on user interaction. jQuery has various methods by which we can set the background color of an HTML element in using jQuery. We will see some different approaches including, using the CSS () method, using the addClass() method, and using the attr() method. Every method has its pros and ... Read More

How to set background color of a particular div in jQuery?

Tarun Singh
Updated on 10-May-2023 13:14:44

1K+ Views

jQuery is a very popular and widely used JavaScript library used in the process of writing and manipulating HTML documents, handling events, and adding dynamic effects and animations to web pages. Sometimes we need to style a particular div in our web page but don’t know which method to use and how to use it. The process of styling the div is very easy and setting the background color of a particular div element can be achieved with the help of jQuery. Its process includes selecting the particular div element with the help of selectors, and then applying the CSS ... Read More

How to set a Variable to equal nothing in SASS?

Tarun Singh
Updated on 10-May-2023 13:10:42

383 Views

SASS or Syntactically Awesome Style Sheets, is a very popular preprocessor scripting language among developers that are used to enhance the functionality of CSS. SASS allows the developers to use variables, nesting, mixins, and some other advanced features that are not available in CSS. One of the key features of using SASS is the feature of declaring variables, which are nothing but placeholders for the values that we can reuse throughout our web application stylesheet. Variables help save time and effort for the developers enabling them to update multiple values at once just by making the code more readable and ... Read More

How to select values from a JSON object using jQuery?

Tarun Singh
Updated on 10-May-2023 13:01:39

5K+ Views

JSON or JavaScript Object Notation is a lightweight format used for data interchange between web applications and servers. It provides a simple and easy-to-read structure that can be parsed and generated easily by machines. JSON is often used as an alternative to XML because it is more compact and easier to work with. In this article, we see how to select values from a JSON object using jQuery with different approaches. What is a JSON object? A JSON object consists of a collection of key-value pairs separated by colons. Here keys are known as strings and the values are of ... Read More

How to scroll the page up or down using anchor element in jQuery?

Tarun Singh
Updated on 10-May-2023 12:58:20

3K+ Views

jQuery is a popular JavaScript library that simplifies the process of manipulating HTML documents, handling events, and creating animations. In this article, we'll see how to scroll the page up or down using the anchor elements in jQuery. We sometimes encounter large content pages on websites and to go to a specific section, we want to perform the scrolling in the page up or down. To solve this problem, there are several ways to achieve this, but using anchor elements is one of the easiest and most straightforward methods. Apart from this, we’ll see the scrollTop and animate to perform ... Read More

How to rotate shape loader animation using CSS?

Tarun Singh
Updated on 10-May-2023 12:52:12

2K+ Views

In this article, we’ll see how to rotate shape loader animation using CSS. Loading animations of different shapes is an essential part of a web app as it helps the users stay engaged while they wait for a website to load. There are multiple animations that one can add to a web page or application, one popular type of loading animation is the rotating shape loader. This animation has good features in which a shape is spinning continuously until the web page is fully loaded. Moving ahead, we are going to use a different approach to rotate the shape loader ... Read More

How to select the last row of a table using jQuery?

Tarun Singh
Updated on 10-May-2023 12:48:30

2K+ Views

jQuery is a widely used tool in JavaScript that simplifies the process of manipulating HTML documents and doing other tasks related to website development. In this article, we will see how to select the last row of a table using jQuery. Along with this, we’ll know different approaches to performing this task. Why Selecting the Last Row of a Table is Important? Let's see why we need to select the last of a table and why it becomes an important task. So basically when developers need to change or modify their new data into the existing table dynamically, it ensures ... Read More

How to design initial letter of text paragraph using CSS?

Tapas Kumar Ghosh
Updated on 10-May-2023 15:19:38

2K+ Views

We have seen in various chapters of many books guiding on how to design the first letter of word using CSS. In CSS we can use the ::first-letter pseudo-element to design the first initial letter of a text paragraph. This allows us to apply particular styles to the initial letter of the first line of a block-level element. For example, we may make the initial letter larger, a different font, or a different color from the rest of the text. Syntax p::first-letter{ property_name : value_name; } first-letter − The first letter is defined as the pseudo-element ... Read More

How to display a link using only CSS?

Tapas Kumar Ghosh
Updated on 10-May-2023 15:14:32

222 Views

To disable the link of any website, we use the properties of CSS like pointer-event set to none, and then the cursor can be set to default which will disable the active link and the users cannot access the links. Sometimes the link has to be disabled to bring some updates or security to the website. The government or organization is the best suited for this example, whenever they need any updation required in the backend of the website they simply disable the link. In this article, we will display how to display a link using only CSS. Syntax ... Read More

How to create a Basic collapsibles using jQuery Mobile

Aman Gupta
Updated on 09-May-2023 17:04:17

110 Views

Overview The jQuery mobile provides the enhanced version of the simple jQuery, as the jQuery mobile provides responsive content and designs for all types of screens. So before starting to build the collapsible we should know about the feature. A collapsible is a web component which statically shows the heading or main content of the data and on clicking the heading it expands and shows the whole information about the heading. We can also build the collapsible using normal jQuery but it will not provide the responsive design and layout. jQuery Mobile Content Delivery Network (CDN) Links Before starting to ... Read More

Advertisements