val in jquery using id code example
Example 1: jquery this value
$( "input" )
var value = $( this ).val();
Example 2: jquery set input value
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})
$( "input" )
var value = $( this ).val();
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})