I have here a javascript code that filters special characters. But what I really want is to filter all special characters except space. Hope you can help me with this. Thanks a lot in advance!
function valid(f) {
!(/^[A-zÑñ0-9]*$/i).test(f.value)?f.value = f.value.replace(/[^A-zÑñ0-9]/ig,''):null;
}