Disha Verma has Published 63 Articles

JavaScript input type=submit is not working?

Disha Verma

Disha Verma

Updated on 25-Feb-2025 14:52:42

2K+ Views

The input type submit is not working; it is one of the common issues that every developer faces while working with JavaScript forms. To make it work, you can use an onclick event listener with input type = "submit" or prevent its default behaviour. This article looks at common reasons ... Read More

JavaScript: How to map array values without using \"map\" method?

Disha Verma

Disha Verma

Updated on 25-Feb-2025 14:51:59

1K+ Views

Mapping array values without using the map method can be done by using forEach() method, reduce() method, for loop, and while loop. In this article, we will implement some methods that will work efficiently for mapping array values. Table of Content Mapping array values without using map method ... Read More

JavaScript: How to filter out Non-Unique Values from an Array?

Disha Verma

Disha Verma

Updated on 25-Feb-2025 14:51:10

1K+ Views

To filter out non-unique values from an array in JavaScript, you can use the filter() method, a for loop, the set and filter() method, and the reduce() method. In this article, we will filter out non-unique values and return an array that only contains unique non-repeating elements. Arrays are data ... Read More

JavaScript code to find nth term of a series - Arithmetic Progression (AP)

Disha Verma

Disha Verma

Updated on 25-Feb-2025 14:50:36

1K+ Views

To find the nth term of an arithmetic progression in JavaScript, we need to write a function that will calculate the nth term. In this article, we will explore how to find the nth term of an AP using JavaScript. We are required to write a JavaScript function that takes ... Read More

JavaScript - Check if value is a percentage?

Disha Verma

Disha Verma

Updated on 25-Feb-2025 14:50:05

1K+ Views

To check the value for percentage, use a regular expression. When dealing with user input or processing data in JavaScript, it's important to make sure a value is a valid percentage. This article shows you how to check if a value is a percentage using JavaScript, highlighting a useful method ... Read More

How to fill the height of the viewport with tailwind CSS?

Disha Verma

Disha Verma

Updated on 09-Jan-2025 12:51:02

99 Views

Many developers struggle to create elements that fill the full height of the viewport, especially in responsive layouts, because they lack knowledge of using Tailwind CSS utilities. Tailwind CSS ensures responsiveness and user engagement by providing utility-first classes. What is viewport height? Viewport Height (vh) is a CSS unit ... Read More

How to create multiple themes using Tailwind CSS?

Disha Verma

Disha Verma

Updated on 06-Dec-2024 10:20:47

105 Views

Many modern web apps require different themes, like light and dark modes, to enhance a user's experience. However, setting up and changing themes with Tailwind CSS can be confusing for developers. This article offers easy and effective methods to create and manage multiple themes with Tailwind CSS. Approaches to ... Read More

How to use CSS variables with Tailwind CSS?

Disha Verma

Disha Verma

Updated on 05-Dec-2024 12:12:43

142 Views

Tailwind CSS is a utility-first approach that provides predefined utility classes. Sometimes developers want to use CSS variables instead of predefined classes. This article will guide you in effectively using CSS variables in Tailwind CSS. What is CSS Variables? CSS variables are also known as custom properties, which are ... Read More

How to use calc() in tailwind CSS?

Disha Verma

Disha Verma

Updated on 04-Dec-2024 09:12:57

215 Views

Many developers find it difficult to use the calc() function in Tailwind CSS, which limits their ability to create responsive and dynamic layouts. This article explains how to implement calc() effectively, improving design flexibility and precision. What is calc() in CSS? The CSS Calc() function allows you to perform ... Read More

Vertical align content within a full-screen div using Tailwind CSS

Disha Verma

Disha Verma

Updated on 03-Dec-2024 09:35:33

36 Views

Centering content vertically in a full-screen div can be challenging if you are unfamiliar with Tailwind's utilities. Tailwind CSS has many utility classes, but to use them effectively, you must understand how they work and the best ways to apply them. Approaches for Vertically Aligning Content in a Div ... Read More

Advertisements