I am developing an application with Angular JS, Bootstrap and Jquery. I have created a fixed footer which works as expected throughout the application. but when i click on an input box on mobile browser the footer moves to the screen center.
here is the css :
.footer{
    bottom: 0;
    padding: 10px 15px;
    position: fixed;
    width: 100%;
}
I tried changing the footer properties to position:absolute and display:none on input focus. here is the code for it :
$(document).on('focus', '[type=text], [type=password], [type=number]', function (e) {
    $(".footer").css("position","absolute");
    $(".footer").css("display","none");
});
$(document).on('blur', '[type=text], [type=password], [type=number]', function (e) {
    $(".footer").css("position","fixed");
    $(".footer").css("display","block");
});
It works on few devices like Iphone 5 and 5s but no success on others like Ipad, Iphone 4 etc. Any help would be much appreciated.
 
     
     
    