[jQuery] Jquery url encode

[jQuery] Jquery url encode


Im using Ajax to get results back.
These results are used to show data and create a link to it:
Example:
Name Link
John & Mary www.google.com/John&Mary
Paul & Niamh www.google.com/Paul&Niamh
How can I get Jquery or Javascript to url encode the link?