The difference between jquery usage in IE and firefox_jquery
- WBOYOriginal
- 2016-05-16 19:00:191001browse
Can run under IE and Firefox.
//Enter event processing
$(document).keydown(function(event){
if(event.keyCode==13){
alert($('#idone').val());
//Enter keyboard to get ISBN
if($('#idone').val()=='isbn') {
//isbncheck();
$('#ztm').focus();
}else
if($('#idone').val()=='ztm '){
$('#bltm').focus();
}
if($('#idone').val()=='bltm'){
$( '#ftm').focus();
}else
if($('#idone').val()=='ftm'){
$('#dyzrsm').focus ();
}
}
});
can only be run under IE.
//Enter event handling
$(document).keydown(function(){
if(event.keyCode==13){
//alert($('#idone').val());
//return Car keyboard ISBN acquisition
if($('#idone').val()=='isbn'){
//isbncheck();
$('#ztm').focus() ;
}
if($('#idone').val()=='ztm'){
$('#bltm').focus();
}
if($('#idone').val()=='bltm'){
$('#ftm').focus();
}
}
});
In summary, debugging programs under Firefox is beneficial to program compatibility.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn