Category

Javascript

How to Get the Selected Value of a Radio Button in JavaScript

When working with radio buttons in a form, you may want to retrieve the value of the selected option. This can be achieved using JavaScript by accessing the group of radio buttons with the same name attribute and checking which one is selected. Following are the steps with example: document.getElementsByName('color'): It gets all radio buttons […]

How do i set the value of a select box programmatically in JavaScript / jQuery

in this article I am going to explain how can we set value of select box using JavaScript or jQuery. Let’s suppose you are fetching some value from database and you want to display it on website page in dropdown list. The values that are in database should be added automatically in select box. You […]

How to Design Stylish Forms in HTML

In this post, i am going to explain that how can we design a stylish HTML form for our website and this form will be good looking.I am going to use HTML,CSS, Jquery and bootstrape in this example. First, You need to have a index.html file to design the input fields and i am going […]