I have, for example, the following URL stored in a global variable:
var myUrl = "http://mydomain.com/something?row=1";
Then the function should add, say, another parameter called the "column". How does this function add parameters to a pre-existing URL string using jQuery?
An example of an expected generated string:
"http://mydomain.com/something?row=1&column=9"
The problem is that myUrl could also be simple:
var myUrl = "http://mydomain.com/something";
(Note that options did not exist before)
javascript jquery
Alfredo Osorio Jan 17 '12 at 22:05 2012-01-17 22:05
source share