this.val is not a function code example Example: jquery this value $( "input" ) var value = $( this ).val();