codice:
function SoloNumeri() {
  if (!campo.match(/^\d+$/)) {
    alert("inserire solo numeri");
  }
}