How to replace innerHTML of a div tag using jQuery? I would have made it this and skipped the comparison. Why a straight line is the shortest path between two points? If you look at this answer, you can see how to submit it using Question: I've worked with JQuery to get data from a specific form element when triggered Is there a way of setting the .change trigger to the form and using javascript to detect which form element was selected/changed and get its value Solution 1: You can listen to 's input event . A set of key/value pairs that configure the Ajax request. This tutorial explains how to create simple dropdown menu in react native application . You may also have a look at the following articles to learn more . border-collapse: collapse; In this tutorial we will explain how todisplay image in react native application using HTTP URL . To change value of input, use the concept of document. Now we need to get the input text data of the form, so we can use the val () function as var name =$ ("#fname").val ();", where "#fname" is the id of the input element. Javascript Code for Jquery Read/Change function, Select checkboxes and enable corresponding radio button using jQuery. ALL RIGHTS RESERVED. jquery get all elements of form.