0
我粘貼我的示例代碼在這裏我試圖檢測按鍵上的輸入鍵,但它不斷給FF中的錯誤,e是未定義的。按鍵事件不工作在Firefox中的文本框中的火狐
$(document).ready(function() {
$('#txtDescript').keypress(function(e) {
clearDescription(e)
});
});
我的標記
<input type="text" style="width: 350px; height: 50px;" id="txtDescript" value="Enter Description"class="TextBox" onclick="clearDescription();"
onblur="blurDescription();" />
這是功能
function clearDescription(e) {
debugger
var KeyID = (window.event) ? event.keyCode : e.keyCode;
var keyPress = checkBrowser(e);
if (keyPress == 13) {
setDescription();
}
}
它的任何解決方案
@Darinn謝謝你爲我工作。 – ankur 2011-02-03 09:11:20