In this tutorial, you will learn how to assign value to textbox using javascript. Whenever we need a textbox on our website, we make use of either input element or textarea element. The input element is best suited for single-line sentences. On the other hand, textarea element is used for multiline sentences. Both input element
In this tutorial, you will learn how to add style using javascript. As you already know whenever we want to enhance the appearance of an element, we make use of CSS to add some styles to it. CSS fits the need if you do not want to modify the styles of an element, once the
In this tutorial, you will learn how to change div background color in javascript. The div element is a block-level element and we generally use it as a container for other elements. You can specify a default background color for any element using CSS, but to change it dynamically, we have to make use of
In this tutorial, you will learn how to add two numbers using javascript. Adding two numbers in javascript is very easy and it is something that you should be able to do without any issue even if you are a newbie. Like other programming languages, we do have an addition operator (+) and this is