htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: WYSIWYG Forums: WYSIWYG Editor Discussion:
change htmlarea content


 


ghasembaghi
New User

Aug 2, 2009, 10:03 AM

Post #1 of 1 (62576 views)
Shortcut
change htmlarea content Can't Post

i have 2 radio button and 1 text area in my page in one form.
text area actived vith htmlarea.
i want when my user select radio button 1, text area fill with text1
and when select radio button 2, fill with text2.(automatically)

i use this script:
----------------------------------------------------------------------------------------------------------
<script type="text/javascript">
function changefil1()
{document.form1.T1.value="<b>text1</b>";}
function changefil2()
{document.form1.T1.value="<b>text2</b>";}
</script>

<form method="POST" action="page.asp" name="form1">
<p><input type="radio" name="R1" value="V1" onclick="changefil1()">Radio 1</p>
<p><input type="radio" name="R1" value="V2" onclick="changefil2()">Radio 2</p>
<p><textarea rows="2" name="T1" cols="20"></textarea></p>
<p><input type="submit" value="Submit" name="B1"></p>
</form>
----------------------------------------------------------------------------------------------------------
this script work corectly when text area not actived by htmlarea
but when i use htmlarea, this script does not work.

 
 
 


Search for (options)