Auto Select all pada textarea

Demo :




Cara membuatnya

Tambahkan attribute didalam tag textarea :

onFocus="this.select()"

Contoh :

<textarea onFocus="this.select()">Ini hanya sekedar contoh</textarea>


Alhamdulillah

0 comments:


Posting Komentar


Creative Commons License
Auto Select all pada textarea by Nano Yulianto is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at http://nanoyulianto.blogspot.com/2011/01/auto-select-all-pada-textarea.html.
Permissions beyond the scope of this license may be available at http://nanoyulianto.blogspot.com/.