I can not get the value typed in an input field with jQuery:
HTML:
<input type="text" id="vendaMediaMensal" name="vendaMediaMensal">
jQuery:
var vendaMediaMensal = $("#vendaMediaMensal").val();
$("#vendaMediaMensal").focusout( function(){
alert(vendaMediaMensal);
});