ciao!
vorrei un chiarimento se possibile sul settare via javascript valori dentro a una input text (e probabilmente più in generale dentro a elementi del dom).
due esempi:
secondo:codice:function whois() { var dom = document.getElementById('whois'); if (dom.value.length !== 0) { $.ajax({ type: "POST", dataType: "html", url: "", data: "dominio=" + dom.value, success: function (response) { $('#ajax').html(response); dom.value = ''; // IL VALORE DELLA INPUT NON VIENE RESETTATO } }); } }
potete darmi una delucidazione per favore?codice:function whois() { var dom = document.getElementById('whois'); if (dom.value.length !== 0) { $.ajax({ type: "POST", dataType: "html", url: "", data: "dominio=" + dom.value, success: function (response) { $('#ajax').html(response); document.getElementById('whois').value = ''; // IL VALORE DELLA INPUT VIENE RESETTATO } }); } }

Rispondi quotando

