try
<textarea style="font-family:georgia;color:red;"></textarea>
---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924
It works great. However I tried adding bold to it, such as
style="font-family:arial;color:#666666;weight:bold;" I just could not get it to recognize the instruction. It's not a big issue, I'm happy with what I can do now.
syntax for bold is
font-weight:bold; ---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.