fix auto focus select box or radio box bug
This commit is contained in:
parent
20ef6e26d3
commit
8ff3540744
|
@ -86,7 +86,7 @@ if ( jQuery.ajax ) {
|
|||
};
|
||||
}
|
||||
$(function(){
|
||||
$('input[type!="checkbox"],select,textarea').not('[type="submit"]').on('focus', function() {
|
||||
$('input[type!="checkbox"],textarea').not('[type="submit"],[type=radio]').on('focus', function() {
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $(this).offset().top -200
|
||||
}, 100);
|
||||
|
|
Loading…
Reference in New Issue