Ok, i have made 4 buttons, little buttons called.
B =Bold, --- =Line, U = Underline, SFT = Space just above my textarea About Me.
[PHP] <tr>
<td><input type="button" name="Button" value="B" onclick="Change Text(this.form. aboutme,);" /> <input type="button" name="Button" value="U" onclick="Change Text(this.form. aboutme,;" />
<input type="button" name="Button" value="LINE" onclick="Change Text(this.form. aboutme,[HR SIZE=1] [/HR];" /> <input type="button" name="Button" value="SPACE" onclick="Change Text(this.form. aboutme,<BR />;"/>
<br />
<textarea name="aboutme" cols="50" rows="10" wrap="virtual" id="aboutme"></textarea></td></tr>[/PHP]
How can i target the textarea when a user hits the button?
So if help me1 is hilighted, and he/she hits B button it will change it to.
help me!
B =Bold, --- =Line, U = Underline, SFT = Space just above my textarea About Me.
[PHP] <tr>
<td><input type="button" name="Button" value="B" onclick="Change Text(this.form. aboutme,);" /> <input type="button" name="Button" value="U" onclick="Change Text(this.form. aboutme,;" />
<input type="button" name="Button" value="LINE" onclick="Change Text(this.form. aboutme,[HR SIZE=1] [/HR];" /> <input type="button" name="Button" value="SPACE" onclick="Change Text(this.form. aboutme,<BR />;"/>
<br />
<textarea name="aboutme" cols="50" rows="10" wrap="virtual" id="aboutme"></textarea></td></tr>[/PHP]
How can i target the textarea when a user hits the button?
So if help me1 is hilighted, and he/she hits B button it will change it to.
help me!
Comment