I can't get rid of unwanted placeholder (or watermark) on password textbox. When password textbox is focused, Android web browser displays placeholder overtaken from associated label element, like this:
HTML source:
<form method="post">
<label for="userName">Login name:</label>
<input id="userName" name="userName" type="text" value="" />
<label for="password">Password:</label>
<input id="password" name="password" type="password" />
<input type="submit" id="submit" name="submit" value="Log In" />
</form>
Note:
Edit:
Tried another variant (which avoids "for" attribute), but the placeholder is still present:
<label>Password: <input id="password" name="password" type="password" /></label>
the following css can disable this:
-webkit-user-modify: read-write-plaintext-only;
I think you need the place holder in android. For that use the property of Edittext
android:hint="Username"
<EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textNoSuggestions" android:id="@+id/textName" android:hint="Username"></EditText>
<EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textEmailAddress" android:id="@+id/textEmail" android:hint="Email"></EditText>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With