تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
16930 أدوات العرض

How to insert line break in placeholder in text area field?

 

الصورة الرمزية
إهمال

Hello ,

You get any solution because i am facing similar problem.

أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 16
4332
0
يوليو 16
5201
1
ديسمبر 15
3757
1
نوفمبر 15
5191
1
يناير 24
15743