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

c# SetCompatibleTextRenderingDefault must be called before the first -

How to prevent logback from emitting repeated "Empty watch file list. Disabling" messages -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -