jquery form get value of input code example
Example 1: get value of input jqueyr
var str = $("#myInput"). val();
Example 2: javascript jquery get form field value
$(document).ready(function(){
$("#buttonSet").click(function () {
$("#txtBox").val("Amit");
$("input:radio").val(["male"]);
$("#buttonGet").removeAttr('disabled');
});
$("#buttonGet").click(function () {
$("#result").html(
$("#txtBox").val() + "<br/>" +
$("input:radio[name=rd]:checked").val()
);
});
});