uri encode object jquery code example Example: urlencode jquery var encoded = encodeURIComponent(str);