javascript - My website form fields are hiding behind the keyboard in mobile browser -


i implementing website. sort of plugin. has login page. when click username or password, body of website should compress. instead hides behind keyboard. using bootstrap inside it. tried implement script in header of page not working. tips?

$(document).ready(function() {     $('input').blur(function() {         $('body').css({'height':'100vh'})       })       .focus(function() {         $('body').css({'height':'50vh'})       });   }); 


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -