Abhishek has Published 65 Articles

How are the points in CSS specificity calculated?

Abhishek

Abhishek

Updated on 08-May-2023 16:44:23

69 Views

CSS specificity, is a type of process in which different CSS selectors are differentiated or prioritize according to the points, and the selector with highest number of specificity points will win and the CSS styles of that selector will be applied to the element. The points hierarchy of each CSS ... Read More

How to add a custom right-click menu to a webpage?

Abhishek

Abhishek

Updated on 08-May-2023 16:42:59

1K+ Views

In today’s time, when you right click on any web page there will be a list of some with some options and functionality pops up. This popup menu is also known as the context menu which is a default popup menu given by browser. The items in the list of ... Read More

How to make the cursor to hand when a user hovers over a list item using CSS?

Abhishek

Abhishek

Updated on 08-May-2023 16:40:25

77 Views

In general, if we hover or take the cursor over an element in HTML document the cursor by default appears as an arrow or a selector if we hover it over a text. But, we can change the behaviour of the cursor on hover to selected elements to any type ... Read More

How to retrieve stored value from div element using jQuery?

Abhishek

Abhishek

Updated on 08-May-2023 16:38:44

211 Views

In some situations, we need to retrieve or get the text value stored inside a particular div element to use some condition, if the text is dynamic or for some other tasks in jQuery. By getting the value stored in the div element, we can perform any task based on ... Read More

How to reverse array of DOM elements using jQuery?

Abhishek

Abhishek

Updated on 08-May-2023 16:36:58

269 Views

The array of DOM elements is an array of same multiple elements or of those elements which contains same class or the selecting attribute. Our task is to reverse an array of DOM elements using jQuery. There will be a lot of ways to reverse an array of DOM elements. ... Read More

How to Change the Time Interval of setinterval() Method at RunTime using JavaScript ?

Abhishek

Abhishek

Updated on 17-Feb-2023 11:57:00

2K+ Views

The setInterval() method is used to call a particular block of code again and again after a particular interval of time that is given to it in its round braces as parameter. The setInterval() method accepts two parameters, the first is the code that has to be executed again and ... Read More

How to change the text of a label using JavaScript?

Abhishek

Abhishek

Updated on 17-Feb-2023 11:55:49

3K+ Views

Before going to learn about the method of changing the text of a label element in HTML document, let us understand what is the label tag itself? The label tag helps in improving the usability of the web page for mouse users, as it can toggle the text inside it ... Read More

How to change the text and image by just clicking a button in JavaScript?

Abhishek

Abhishek

Updated on 17-Feb-2023 11:54:44

13K+ Views

The text given to an particular element and the image given in an img element can be easily changed using the JavaScript. We can use the onclick event with the button element in the HTML document to make this happen when the button is clicked. To change the text on ... Read More

How to change the src attribute of an img element in JavaScript / jQuery?

Abhishek

Abhishek

Updated on 17-Feb-2023 11:53:22

9K+ Views

There are different methods to change the path of an image given to the src attribute of an img element in HTML document using the JavaScript as well as jQuery. Method of changing the src attribute of an img element using JavaScript − Use the src property in JavaScript. ... Read More

How to change the shape of a textarea using JavaScript?

Abhishek

Abhishek

Updated on 17-Feb-2023 11:51:52

219 Views

Textarea is a type of box with dynamic width and height, that means when the text is entered inside it, the text will not overflow and will only be contained by this texarea as it can dynamically increase or decrease its height and width. The textarea is mainly used inside ... Read More

Advertisements