jquery-url

This library is an util for working with urls.

Usage

var url = $.url('http://example.com?p1=v1&p2=v2');

url.set('p3', 'v3')
url.toString(); //=> "http://example.com?p1=v1&p2=v2&p3=v3"
url.set('p1', 'nv1')
url.toString(); //=> "http://example.com?p2=v2&p3=v3&p1=nv1"
url.unset('p3')
url.toString(); //=> "http://example.com?p2=v2&p1=nv1"

Author (Speransky Danil): Personal Page | LinkedIn | GitHub | StackOverflow