jquery change value input code example
Example 1: jquery value of input
$("#textInput").val() // To get value of element textInput
Example 2: get value of input jqueyr
var str = $("#myInput"). val();
Example 3: jquery change value of input
$('selector').val('new value');
Example 4: jquery set input value
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})
Example 5: set input value jquery
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
});