How will you Encode/Decode URL in jQuery ?

 Posted by Akiii on 5/18/2012 | Category: jQuery Interview questions | Views: 5598 | Points: 40

In jquery, you can use the following functions to encode and decode url :-

encodeURIComponent(url) and decodeURIComponent(url)

You have to pass the complete url with parameterized value in the function and in return it will encode/decode you url for you !

Thanks and Regards

| Alert Moderator 

Comments or Responses

Login to post response