[jQuery] Forms: Convert spaces to +'s, and how to GET only certain form elements?
Hi,
I am working on a search form where I need to convert the spaces of
the submitted data (using GET form method) to +...
For example:
Search term: dog cat horse whale
would be
Search term: dog+cat+horse+whale
Any tips for doing this using jQuery?
Additionally, is there a good way (using jQuery) to not submit certain
fields? For example, when I submit my form using GET form method, I
see all of the unwanted fields showing up in the resulting URL search
page.
I assume that probably the best solution is to use two different
forms... But if I can avoid re-tooling my current single-form setup
(using jQuery), that would be the best! :)
Thanks in advance!
Cheers,
Micky