I have a form in my website. I made it first for desktop browsers, and now I need this form to work in android browsers too. So, I got an android device, and tested the website, but when I try to enter values in the input fields, I can't. Any help?
This is the code of the fields of the form:
<p>Empresa</p> <input type="text" value="empresa" name="empresa" id="empresa" /><br />
<p>Usuario</p> <input type="text" value="usuario" name="alias" id="usuario"/><br />
<p>Contraseña</p> <input type="password" value="contraseña" name="clave" id="pass" /><br />
<input type="submit" value="ACCESO" id="boton_popup"/>
<input type="hidden" value="xxx" name="url">
I implemented this code with jQuery (It's like placeholder, but with jQuery I obtained compatibility with more browsers). Maybe this code doesn't work in android browsers.
$("#usuario").click(function(){$(this).val("");});
$("#pass").click(function(){$(this).val("");});
$("#empresa").click(function(){$(this).val("");});
$("#empresa").one("keypress",function(){$(this).val("");});
EDIT: Tested in samsung galaxy s2, and it works like a charm.