Home > Web Front-end > JS Tutorial > The difference between jquery usage in IE and firefox_jquery

The difference between jquery usage in IE and firefox_jquery

WBOY
Release: 2016-05-16 19:00:19
Original
1011 people have browsed it
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.
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template