jquery this value

JavaScript
$("#textInput").val() // To get value of element textInput$( "input" )
    var value = $( this ).val();
// Get the value from id thisElement
$("#thisElement"). val();
Source

Also in JavaScript: