I have a url passed to my page as such..
domain.com/users=1237,3728,5686
I have another array whereby in my loop of this array I want to check to see if the ID exists from those passed in the URL. However I am unsure how to achieve this. Mostly, it's how to get the URL params into an array so I can make a comparison.
Can anyone help?
var user = new Array();
var list_len = realDataUsers.length;
for(var i=0;i<list_len;i++){
user['id'] = realDataUsers[i].id;
if($.inArray(user['id'], tousersArray), 1){
// get selected state for option
}
options = options + "<option value='"+"U|"+user['id'] +"'>"+"User ("+user['name']+")</option>";
}