Skip to content

Instantly share code, notes, and snippets.

@othree
Created September 6, 2009 08:21
Show Gist options
  • Save othree/181715 to your computer and use it in GitHub Desktop.
Save othree/181715 to your computer and use it in GitHub Desktop.
var form = document.getElementById('add-murmur');
form.onsubmit = function (evt) {
var target = form.getElementsByTagName('input')[0];
var text = target.value;
target.value = text.replace(/\s*:w$/, "");
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment