How will you Encode/Decode URL in jQuery ?

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

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
Akiii


| Alert Moderator 

Comments or Responses

Login to post response