Thursday, 8 August 2013

input placeholder when change lanscape to portrait in iphone

input placeholder when change lanscape to portrait in iphone

If I put a placeholder in an input field, when I change lanscape to
portrait It doesn't resize fine. (Iphone safari) Example:
<input class="inputsBlock"/>
<br>
<input class="inputsBlock" id="name" placeholder="Text"/>
<br>
<input class="inputsBlock"/>
<br>
<input class="inputsBlock"/>
I've tried without placeholder and it works. Also, I 've tried adding
placeholder with Javascript:
$(document).on('ready', function(){
document.getElementById('name').setAttribute('placeholder',"Text");
})
Any idea?

No comments:

Post a Comment