The placeholder attribute is used to show a small hint to describe a value to help users understand what value they should enter in a text field. The placeholder text by default is left aligned. I’ll ...
You can use the navigator .onLine property in JavaScript to find out whether your browser in online or offline. It actually gives you status of your internet connection. ...
You can use the clientHeight property to measure the inner height of an element, including padding. However, it will exclude the borders, margins and scrollbar height of the element. The offsetHeight ...
A VLOOPUP function (also known as the Vertical function) in Excel, is often used to look up or find a value from a range of data in a worksheet. I’ll show you how you can use the VLOOKUP with the IF ...
You can tilt or rotate a SPAN or any HTML element at a specified angle using CSS3 “transform” property. This property has many useful functions and one of them is the “rotate()” function, using which ...
An array in JavaScript can hold different types of value in a single variable. The value can be a string or a number. Sometimes you might have to separate the numbers and strings from the array. ...
You can use the “onfocus” attribute in JavaScript to clear a textbox or an input box when somebody sets focus on the field. If you are using jQuery, then use the “.focus()” method to clear the field. ...
Many young developers ask this question and there are many simple solutions. You can loop through each number in an array and using a formula, get the even numbers. However, there’s another method ...
I have explained jQuery .append() and .appendTo() methods in my previous articles, which also serves the same purpose. However, if you want to stick to pure JavaScript to append or add texts, content ...
Even though it’s basic, new programmers often struggle to figure out the correct method to set the width and height of an element dynamically using plain JavaScript. ...