Trying to learn something new here, and that is how to build an array from a query string using js or jquery. So lets say I have a URL that looks like this:
http://demo.dev.activemls.com/property/search?city=TOLEDO&bdrms=3&bthrms=2.0&lowprice=115000&highprice=125000&zip=&order=B&pagesize=30
assuming the query may not always have the same keys/values (the string could be longer or shorter), how would i then convert this string to an array like this:
var query = {
city: "TOLEDO",
bdrms: 3,
bthrms: 2.0,
lowprice: 115000,
highprice: 125000,
zip: "",
order: "B",
pagesize: 30
};