Click to See Complete Forum and Search --> : textarea control !!


unisabilly
05-16-2006, 04:38 AM
<input class="bginput" type="text" name="keywords" size="15" value="enter your text here ..." onFocus="if (this.value=='enter your text here ...') {this.value=''}" onBlur="if(this.value=='')this.value='enter your text here ...' ">

what will the code look like if i want the 'textarea' do somthing like the above code did to the 'text'.

Kardall
05-16-2006, 04:47 AM
uhm... not quite PHP...

look up the <textarea></textarea> in an html guide. How it operates. :) You can put pretty much any java you want into a text area tag just like any other tag so... you just use a open/closing tag, instead of an open ended tag like <input>.

Pseudo-Code:

<textarea javascript="stuff">Text Area Text</textarea>