Skip to content

Instantly share code, notes, and snippets.

@snowbob
Created November 21, 2018 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snowbob/071df91f63299b1990a09450555a60c0 to your computer and use it in GitHub Desktop.
Save snowbob/071df91f63299b1990a09450555a60c0 to your computer and use it in GitHub Desktop.
js:removeSpecialCharsOnBlur
$("input[id^='item-']").live('blur',function(e) {
var $this = $(this),
edit = '<?=$edit;?>',
str = $this.val()
str = str.replace(/[!£$^*]/gi, '');
str = removeTags(str);
$this.val(str)
get_name($this.attr('id'))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment