Changes

Removing Special Characters

18 bytes added, 15:34, 27 April 2009
no edit summary
'''2. After user has entered text and clicked away from the field, the following code will look for quotes (" and ' quotes ) and the ampersand (&) and replace them with an underscore (_).
<pre>
onchange=javascript:this.value=this.value.replace(/['\''"&'\"']/g,'_');
</pre>
0
edits