I've this URL here:
http://localhost.com/?color=Red,Blue,Green
How can I check now with JavaScript how many values are set to the parameter separated by the comma?
So something like:
if (url.parameter.length > 1) {
alert('More then 1 parameters');
} else {
alert('Just one');
}
"http://localhost.com/?color=Red,Blue,Green".split("?")[1].split(",").length