jQuery provides the val() method, using which we can quickly get and set the form's text box, radio button, and radio button value.
Using val() without parameters means getting the value of the element
Using val() with given parameters means assigning the value to the element
is as follows:
//Set value
$("input#mytextbox").val("61dh");
$("select#mylist").val("First column ");
$("input#myradio").val(2);