Hi all, i am trying to add a button to the postbit template where a user can highlight all the code in a code textbox with one click, i am trying to use this:
HTML Code:
<input type="button" value="Highlight Text" onClick="javascript:this.form.text_area.focus();this.form.text_area.select();">
which came from this
HTML Code:
<form name="select_all">
<textarea name="text_area" rows="10" cols="80">
MY TEXT TO HIGHLIGHT</textarea>
<br />
<input type="button" value="Highlight Text" onClick="javascript:this.form.text_area.focus();this.form.text_area.select();">
</form>
How would i change the <input line to focus the code box?