How to delete the default text that appears in text boxes on forms on Android devices?

advertisements

I have an html5 based mobile app. In the app I have a form for entering userid and password. But in the android device when I take the cursor inside the textbox some default text appears as shown in the image.

How can this default text be removed?

XML:

<label for="username"
       id="EmailAddress">
</label>
<input type="text" name="username"
       id="username" value=""
       autocorrect="off"
       autocapitalize="off"
       autocomplete="off"
       style="-moz-appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color: rgba(0, 0, 0, 0)!important;" />
<label for="password"
       id="Password">
</label>
<input type="password" title="" name="password"
       id="password" value=""
       style="-moz-appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color: rgba(0, 0, 0, 0)!important;" />


If you are talking about hint, You can set it as textB.setHint("String");

or by setting android:hint from textBox xml declaration.