How to insert line break in placeholder in text area field?
Pertanyaan ini telah diberikan tanda
I am surprised no one came up with a working solution in the last 9 years.
You can simply add & # 1 0 ; (without spaces) to your placeholder text, browser will register it as line feed.
Is it possible ?? ;) Have you tried \n \r ?
yes tried that didn't work.
Only by formatting with multiple spaces, e.g.:
1st line of placeholder starts here 2nd starts here etc
If the size of textarea is fixed, browsers will show such long texts as if they were on multiple lines.
You'll have to fine-tune the number of spaces to make placeholder text look as you like.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
1
Jan 24
|
18089 | ||
|
Where is the Odoo 8 subversion number?
Diselesaikan
|
|
3
Mei 15
|
5113 | |
|
|
1
Jul 16
|
6027 | ||
|
|
0
Jul 16
|
7199 | ||
|
|
1
Des 15
|
5411 |
Hello ,
You get any solution because i am facing similar problem.