get input value by name code example
Example 1: jquery get value by name
$("input[name=nameGoesHere]").val();
Example 2: jquery this value
$( "input" )
var value = $( this ).val();
$("input[name=nameGoesHere]").val();
$( "input" )
var value = $( this ).val();