Results 1 to 8 of 8
Thread: Textarea issue
-
11-08-2011 01:22 PM #1
Rookie Member
Array
- Join Date
- Nov 2011
- Posts
- 16
Textarea issue
Hello,
I wanna to do one thing with textarea on my website. I want to put some default text like "add your message here" and when I gonna click on that field that text should disappear and give me ability to type.
How to do this without any PHP or JS?
-
11-09-2011 06:31 PM #2
<textarea name="textarea" id="textarea" cols="45" rows="5">lorem ipsum</textarea>
-
I may just add that that is an HTML code
== Add your site to UK Web Directory and gain better ranking == Forum Leader Wanted
Add your site to Finance Directory Haabaa
-
11-13-2011 11:40 PM #4
Junior Member
Array
- Join Date
- Aug 2011
- Posts
- 21
-
09-13-2012 11:54 AM #5
Rookie Member
Array
- Join Date
- Aug 2012
- Posts
- 19
u can put that text in placeholder attribute of the textarea.
-
09-14-2012 10:38 AM #6
Rookie Member
Array
- Join Date
- Aug 2012
- Posts
- 19
placeholder option is only available with html5
-
05-09-2013 11:58 AM #7
Banned
Array
- Join Date
- May 2013
- Posts
- 14
<textarea id="PageComments" required="required" placeholder="Comments" rows="1" cols="10" "></textarea>
u can use the above code
-
05-13-2013 07:23 AM #8
Banned
Array
- Join Date
- May 2013
- Posts
- 21
placeholder is only in html 5 not in html4



LinkBack URL
About LinkBacks
Reply With Quote



Bookmarks