salve a tutti premetto sono abbastanza ignorante in javascript cmq vengo al punto
ho una tagboard dove c'è un tasto invio per inserire il testo del messaggio
ora in questa tagboard una volta premuto invio inserisci il testo ma non ti cancella il messaggio dalla casella di testo vorrei sapere come fare per avere i due eventi (invio e reset)insieme
parte del codice:
<td class="cella" colspan="2" align="center">
<form method="post" action="engine.php" target="tag" name="tagform">
<input type="hidden" name="action" value="tagpost">
<input class="casellatesto" type="text" name="nome" value="nome" style="width: 100%">
<input class="casellatesto" type="text" name="url_mail" value="http://" style="width: 100%">
<textarea class="casellatesto" onKeyDown="textCounter(this.form.messaggio,this.fo rm.counter,<?php echo $maxlength ?>);" onKeyUp="textCounter(this.form.messagio,this.form. counter,<?php echo $maxlength ?>);" name="messaggio" style="width: 100%; height: 40" rows="1" cols="20"></textarea>
Caratteri Utilizzati:<input readonly class="casellatesto" type="text" name="counter" style="width: 25" value="<?php echo $maxlength ?>">
<input type="submit" class="pulsante" value=" invio ">[img]images/smile.gif[/img]
</td>prova
</tr>