jQuery .focus () podświetla cały wstępnie wypełniony tekst
HTML
<input id="formloginusername" type="text" name="username" placeholder="Username" value="Pre-filled-from-database"></input>
JS:
$(document).ready(function() {
$("#formloginusername").focus();
});
Problem:
Tekst „Pre-filled-from-database” jest podświetlony. Chcę tylko, aby kursor pokazywał się w polu tak, jakby użytkownik kliknął go po wypełnionym tekście.
Dzięki!