jQuery code can be used to remove special characters.
[js]
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#input_field_name").keyup(function(event)
{
original_val = jQuery("#input_field_name").val();
rep_value = name.replace(/[^a-zA-Z 0-9.]+/g,”);
jQuery("#input_field_name").val(rep_value);
});
});
</script>
[/js]