Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

HTML disable input, textarea, textbox & show text?

Ads
letsplay Offline referral

Posts: 274
Joined: Jul 2013
Reputation: 1

#1
Senior Member
I am not sure which one I will use at the end input field, textarea, textbox or similar text fields but this is what I want to do I want to add html text field but I want it to be disabled however I want it to show some text inside that field but I don't want anybody to be able to use that text field?
victor Offline referral

Posts: 638
Joined: Jun 2013
Reputation: 33

#2
Senior Member
It's easy all you have to do is add disabled="disabled" tag to your input or textarea fields!

Input field and its default value "SOME TEXT HERE"

PHP Code:
<input type="text" disabled="disabled" value="SOME TEXT HERE" /> 

Textarea field and its default value "ANOTHER TEXT HERE"

PHP Code:
<textarea disabled="disabled">ANOTHER TEXT HERE</textarea
letsplay Offline referral

Posts: 274
Joined: Jul 2013
Reputation: 1

#3
Senior Member
Thanks Victor I didn't really know about HTML disabled="disabled" tag works just the way I wanted Wink
victor Offline referral

Posts: 638
Joined: Jun 2013
Reputation: 33

#4
Senior Member
It's perfectly normal not to know some things Wink
Good Luck





User(s) browsing this thread: 1 Guest(s)