2012-02-15 46 views

回答

0

你可以使用jQuery's blur event

$('#TextBox1').blur(function() { 
    alert('Handler for .blur() called.'); 
}); 

要在此展開,並做一些計算/設置另一個文本框,我們可以這樣做值:

<script type="text/javascript"> 
    $(document).ready(function() { 
     $("input[id$=TextBox1]").blur(function() { 
      $("input[id$=TextBox2]").val('Some text') 
     }); 
    }); 
</script> 
+0

嘿Seany84感謝回覆。但實際上我只需要用JavaScript來做,而且我再次得到它謝謝 – 2012-02-16 08:24:43

+0

jQuery是JavaScript ..我低估了這一點,因爲沒有在原始問題中指定它。 – Seany84 2012-02-23 04:48:18

相關問題