We use Arrays to store multiple values or data. It’s a very convenient way to store data temporarily in a single variable, till the job is done. There would be situations where we want to search a ...
The CSS transform property allows you to rotate an element on a web page. You can apply the transform property inside your JavaScript code to perform a task. Here in this post I am sharing a simple ...
There are two simple ways you can read data from an external JSON file and convert the data to an Array. I am sharing two examples here. The first example is in JavaScript and uses the ...
The JavaScript “replace()” method can be used to replace value in a string with a given value. However, if the value that you are trying to replace occurs more than once in the string, for example ...
Let us assume you have a DIV element that serves as a container and it has few more elements in it. You also have a SELECT dropdown list. Based on whatever you select from the dropdown list, it should ...
You can add or insert various symbols in your web page using HTML Unicode. Many characters or symbols that you often see in HTML pages have a unique code or a Decimal code. You can easily insert these ...
You can use the onchange event attribute to capture any change that occur inside an element. The onchange attributes fires when the element loses focus. This attribute is used to detect or capture ...
I only use a plug-in in my applications only when I don’t find easy methods to do things. No doubt, a Plug-in offer features that will help customize your apps. You can find many plug-in that would ...
Let’s assume, I have a number series or a text string and I want to add a dash or hyphen after every 3rd character or simply convert a number like 515458499 to 515-458-499 on my browser. How do I ...
Unlike HTML form input controls, there is no “disabled” attribute for the A tag. Therefore, simply adding the “disabled” attribute to the link won’t actually disable it. There is a workaround though ...