How would one trigger a jQuery POST of the current input on blur.
onblur="$.post(url,this.value)"
?
You could use .blur()
to bind the blur
event handler to the input
's that you want, and then simply invoke $.post()
with the element's value
:
$("input").blur(function () {
$.post('url', { name: this.value });
});
You can send in an ajax post request to accomplish your task..
$("input").blur(function () {
$.ajax({
type: 'POST',
url: 'url',
dataType: 'json',
data: { 'value' : $(this).val() },
success : function(result){
}
});
});