Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating custom behaviour to change typed text

Status
Not open for further replies.

simonWMC

Programmer
Dec 2, 2002
180
GB
Hi

I want to create a custom behaviour to change the text entered into a form (using coursebuilder) to make the typed text change to red if it doesn't match some pre determined text.

Anyone know how to do this ?
 
lol - i did this one first

of course i beleive you

there must be a way round it......

thanks for your help !
 

You are using input - so the css style applies to all of the input tag value.

However, if you were to use a textfield, then it could possible work, because you can select areas of text and apply css to them.

good luck and good hunting

simon



 
Hi

this is my code

Code:
        <form name=&quot;G01elem&quot;>
          <div align=&quot;center&quot;>
            <textarea name=&quot;G01elemInp&quot; rows=8 cols=130 wrap=&quot;VIRTUAL&quot;
			
    onBlur=&quot;G01.e['elem'].update()&quot;

    onFocus=&quot;G01.e['elem'].focus()&quot;><font size=&quot;2&quot; face=&quot;Times New Roman, Times, serif&quot;>something</font>

</textarea>
          </div>
        </form>

can it be done ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top