For example, if the field value was “John Wayne” I would want it to be replaced with “John_Wayne”
I’m thinking I can accomplish this through jQuery, basic idea is below:
$('#searchform').submit(function() {
//take current field value
//replace characters in field
//replace field with new value
});
Any help is appreciated.
You could use the overload of
valthat takes a function:(You’ll probably want your selector to be more specific than
input:text)Example: http://jsfiddle.net/nTXse/