get value jquery from $this code example
Example 1: how to get a value using jquery
<input type="text" id="myid" class="myclass" >
$("#myid").val();
$(".myclass").val();
Example 2: jquery this value
$( "input" )
var value = $( this ).val();
Example 3: jquery get value of element
$("#thisElement"). val();
Example 4: $.get jquery return value
function showGetResult( name )
{
var result = null;
var scriptUrl = "somefile.php?name=" + name;
$.ajax({
url: scriptUrl,
type: 'get',
dataType: 'html',
async: false,
success: function(data) {
result = data;
}
});
return result;
}