[b]code[/b]
<form name="myForm">
<table>
<tr>
<td>blue<input type='radio' name='radioButton' value='[COLOR="Blue"]blue[/COLOR]'></td>
<td>yellow<input type='radio' name='radioButton' value='[COLOR="Yellow"]yellow[/COLOR]'></td>
</tr>
<tr>
<td>red<input type='radio' name='radioButton' value='[COLOR="Red"]red[/COLOR]'></td>
<td>green<input type='radio' name='radioButton' value='[COLOR="Green"]green[/COLOR]'></td>
</tr>
<tr>
<td>blue <input type='checkbox' name='checkbox' value='[COLOR="blue"]blue[/COLOR]'></td>
<td>yellow <input type='checkbox' name='checkbox' value='[COLOR="Yellow"]yellow[/COLOR]'></td>
</tr>
<tr>
<td>green <input type='checkbox' name='checkbox' value='[COLOR="green"]green[/COLOR]'></td>
<td>red <input type='checkbox' name='checkbox' value='[COLOR="Red"]red[/COLOR]'></td>
</tr>
</table>
<textArea name="myTextArea">myText</textArea>
</form>
I have a textArea like the above.
If a user clicks a radio button or check box which value is “blue” after he blocks the area of “myText”
The following tag is generated in the textArea.
“<color=‘blue’>myText</color>”
If a user clicks a radio button or check box which value is “yellow” after he blocks the area of “myText”
The following tag is generated in the textArea.
“<color=‘yellow’>myText</color>”
If a user clicks a radio button or check box which value is “red” after he blocks the area of “myText”
The following tag is generated in the textArea.
“<color=‘red’>myText</color>”
If a user clicks a radio button or check box which value is “green” after he blocks the area of “myText”
The following tag is generated in the textArea.
“<color=‘green’>myText</color>”
If it can make the generating tag I want, either radio button or check box will be O.K.
Can I make it with your help?