This tutorial example shows how to populate input fields in form automatically when a page is loaded or when a checkbox is checked. The below example has three fields and one of then gets populated when the page is loaded and another one of them is populated when checkbox is checked. Sometimes we need to […]
This tutorial example shows how to submit form automatically when a radio button is selected. The below example has two radio buttons and when one of them is selected then the form gets submitted and displays the corresponding value. Sometimes we need to submit the form automatically and then we need to do some funther […]
The below example shows how to achieve it using jQuery. We have a button here and on clicking the button the values from array will be displayed one by one. There are two examples below, one simply access the values from an array and another displays the images from an array.
This tutorial shows how to limit the number of checkbox selections in a group of checkboxes. Suppose you have a group fo checkboxes in a form or in a div or table cell or wherever else and you need a requirement that a user can select maximum of two or three or n number of […]
This tutorial shows how to create ajax in simple way without using jquery or any other frameworks. It check first browsers and creates an XMLHttpRequest object depending upon the type of browser. Then we can use as per our requirements whether it is a GET or POST request.