2012-09-05 33 views

回答

6

你可以使用.blur()blur事件處理程序綁定到你想要的input的,然後簡單地調用$.post()與元素的value

$("input").blur(function() { 
    $.post('url', { name: this.value }); 
}); 
0

您可以在Ajax post請求來完成送你的任務..

$("input").blur(function() { 
    $.ajax({ 
     type: 'POST', 
     url: 'url', 
     dataType: 'json', 
     data: { 'value' : $(this).val() }, 
     success : function(result){ 
     } 
    }); 
});