on focus hide placeholder css code example Example: bootstrap hide placeholder on focus input:focus::placeholder { color: transparent; }