Jump to content
xisto Community
Sign in to follow this  
Amezis

Form Highlight?

Recommended Posts

I have a code on my webpage: "link to us", and a text area where the code is... Anyway, when the user click in the text area, is there a code to highlight the content?Something like <textarea style="highlight"></textarea>?

Share this post


Link to post
Share on other sites

You would use CSS to achieve that effect.

a:link { COLOR: #000000; TEXT-DECORATION: none; font-weight: bold; }a:visited { COLOR: #000000; TEXT-DECORATION: none; font-weight: bold;  }a:hover { COLOR: #ffffff; TEXT-DECORATION: none; BACKGROUND-COLOR: #000000; font-weight: bold;  }a:active { COLOR: #ffffff; TEXT-DECORATION: none; font-weight: bold; BACKGROUND-COLOR: #000000;  }

Share this post


Link to post
Share on other sites

He said he wanted to highlight the contents of a textarea, not highlight a link.
Here's some code that'll do it:

<form method="post" name="highlight"><textarea name="textarea" cols="#" rows="#" onClick="textarea.select();">your content goes here</textarea></form>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.