Wednesday, 20 August 2008

Avoid Special Characters

var r={'special':/[\W]/g}
function valid(o,w)
{
o.value = o.value.replace(r[w],'');
}

No comments: