Aman Gupta has Published 86 Articles

How to create div that contains the multiple fixed-size images

Aman Gupta

Aman Gupta

Updated on 11-Apr-2023 13:49:16

899 Views

Overview To make the images of the fixed size can be done by styling the tag. We can style each tag and set its width and height by its tag name, class name or id name. The only thing is that while styling we have to carefully use ... Read More

How to the count text lines inside of DOM element

Aman Gupta

Aman Gupta

Updated on 11-Apr-2023 13:47:54

673 Views

Overview The number of the text lines inside the Document Object Model (DOM) element whether it would be any element that is , or can be deliberate mainly in two approaches. In the first approach we will be dividing the “offsetHeight” that is height of the DOM element ... Read More

How to count number of Rows and Column using jQuery

Aman Gupta

Aman Gupta

Updated on 11-Apr-2023 12:28:14

3K+ Views

Overview To count for the number of rows and columns in a table can be calculated by using the “length” property in jQuery. To achieve this solution we will target the HTML element of the table to count the number of columns, to count the number of rows in ... Read More

How to count every element including the head and body in the document in jQuery?

Aman Gupta

Aman Gupta

Updated on 24-Mar-2023 12:26:01

969 Views

Overview To count each and every element in the HTML document including the head tag and body tag can be achieved using the jQuery "length()" method. By selecting the universal selector ( * ) as selector and calculating the length of its using length property will return the number of ... Read More

How to convert Title to URL Slug using JavaScript?

Aman Gupta

Aman Gupta

Updated on 24-Mar-2023 12:22:56

1K+ Views

Overview The conversion of a title to URL Slug is also known as to “Slugify” a title. An URL Slug refers to a title which is descriptive by itself and is easy to read. It is attached to the URL of a page which tells about the current page as ... Read More

How to convert String to number using AngularJs?

Aman Gupta

Aman Gupta

Updated on 24-Mar-2023 12:19:49

5K+ Views

Overview To convert the String type value to the Number type value is easy to manipulate with AngularJs as it has in-built function such as parseInt(), parseFloat() which convert the String type of number to the Number type and “isNumber()” function of angular which cross check whether the given data ... Read More

How to convert speech to text using JavaScript?

Aman Gupta

Aman Gupta

Updated on 24-Mar-2023 12:16:55

14K+ Views

Overview To convert the spoken words to the text we generally use the Web Speech API’s component that is “SpeechRecognition”. The SpeechRecognition component recognizes the spoken words in the form of audio and converts them to the text. The spoken words are stored in it in an array which are ... Read More

How to Convert a HTML Table into Excel Spreadsheet using jQuery?

Aman Gupta

Aman Gupta

Updated on 24-Mar-2023 12:14:21

2K+ Views

Overview To convert the HTML Table into the Excel Spreadsheet can be done with the help of jQuery plugins. The “table2excel” is a lightweight plug-in of jQuery, which helps to achieve the solution to the problem. In this we will create a table using HTML tag in that we ... Read More

How to check whether image is loaded or not?

Aman Gupta

Aman Gupta

Updated on 07-Mar-2023 11:52:34

8K+ Views

Overview To check for an image whether it is loaded or not in order to perform some actions can be done by using JavaScript. In many cases our browser fails to load the image due to large size of image, or poor network connectivity. So our image may sometimes show ... Read More

How to check the given element has the specified class in JavaScript?

Aman Gupta

Aman Gupta

Updated on 07-Mar-2023 11:45:20

758 Views

Overview To perform a certain task first we need to access that particular element by its class or by id so before accessing the element we check whether that class is present in that particular element or not. The classList object contains the built-in method classList.contains() in JavScript. This method ... Read More

Advertisements