Ecco uno schema molto grezzo:
al posto dell'alert:
myAlert("CAMPO OBBLIGATORIO <span style='font-color:red;'>" + currElem.id + "</span> INSERIRE PREGO");
dove la funzione myAlert e` definita:codice:function myAlert(str) { var cont = "<html><head><title>ALERT</title></head>\n"; cont += "<body><div> "+str+"</p></div>\n<div>"; cont += "<button value='chiudi' onclick='self.close()' />"; cont += "</div></body></html>"; var win = window.open("", "alert", "width=100,height=100"); win.document.write(cont); }

Rispondi quotando