[Kss-devel] clear textarea
Godefroid Chapelle
gotcha at bubblenet.be
Wed Sep 24 15:55:27 CEST 2008
Vladislav Vorobiev wrote:
> Hi,
>
> How to clear <textarea> with server method
>
> core=getKSSCommandSet('core').setAttribute('#message', 'value', '') does't work.
> core=getKSSCommandSet('core').replaceInnerHTML('#message', '') does't work too.
> core=getKSSCommandSet('core').setAttribute('#sendmessage', 'value',
> 'sended') works
>
> <textarea id="message"></textarea>
> <input type="submit" value="sendMessage" >
Replace the full textarea, with a new empty textarea.
getKSSCommandSet('core').replaceHTML('#message',
'<textarea id="message"></textarea>')
--
Godefroid Chapelle (aka __gotcha) http://bubblenet.be
More information about the Kss-devel
mailing list