Discussione: [Javascript]
View Single Post
Old 23-06-2009, 09:06   #10
nic96
Senior Member
 
Iscritto dal: Feb 2001
Cittā: Catania
Messaggi: 953
risolto

***********
<script type="text/javascript">
function pulisci(id){

document.getElementById(id).value='';

var e1=document.getElementById(id).cloneNode(true)

document.getElementById(id).parentNode.replaceChild(e1,document.getElementById(id));

}
</script>
***********

document.getElementById(id).value=''; ----> funziona su firefox

*******
var e1=document.getElementById(id).cloneNode(true)

document.getElementById(id).parentNode.replaceChild(e1,document.getElementById(id));
******* ---------> funziona su IE6

grazie a tutti

ciao
nic96
__________________
ASUS A8R MX/SI -AMD ATHLON64 3500+ hd IDE 80Gb Maxtor + hd 160Gb MAXTOR SATA-1024Mb V-DATA DDR400 - LITEON 451S@832S
nic96 č offline   Rispondi citando il messaggio o parte di esso