Skip to content

Instantly share code, notes, and snippets.

View andhikamaheva's full-sized avatar
👨‍💻
Wired In

Andhika Maheva Wicaksono andhikamaheva

👨‍💻
Wired In
View GitHub Profile
@andhikamaheva
andhikamaheva / Changed Notifications on Text Field
Last active August 29, 2015 14:14
You can using this script to change required notification in text field
<form id="form" onsubmit="return(login())">
<input name="username" placeholder="Username" required title="Username Anda" oninvalid="this.setCustomValidity('Username harus diisi')"
onchange="this.setCustomValidity('')" type="text" />
<input name="pass" type="password" placeholder="Password" oninvalid="this.setCustomValidity('Password harus diisi')" onchange="this.setCustomValidity('')" required />
<br/>Remember me: <input type="checkbox" name="remember" value="true" /><br/>
<input type="submit" name="submit" value="Log In"/>