Apr
3
2008
Posted by Arief Fajar Nursyamsu in Web Development
During my development for the company’s information system, I found that automatically highlight all text in a textfield can help users to easily delete it’s content, rather than have to block the text or use “Ctrl+A”.
I use Javascript event onFocus() and select() function. Here is how to add it on the textfield properties:
<input name=”country” type=”text” id=”country” value=”Highlighted Text” onFocus=”javascript:this.select()”>

April 3rd, 2008 at 3:30 pm
[...] Javascript: Highlight All Text In Textfield On Focus Juli 14, 2006 — Arief Fajar Nursyamsu This post has been moved. Click here. [...]
April 9th, 2008 at 9:56 am
Jadi pingin coba, sekali sekali dibahas tentang VALIDATION dong mas.. via JS
April 9th, 2008 at 2:00 pm
Insya Alloh saya bahas mas, nanti versi yang bahasa Inggris nitip di tempat sampeyan ya mas