hi guys!!
I found some answers to similiar questions but I'm still not getting it.
but I hope it's a short problem so I dont make too much trouble! ;-)
I have a js array
arr = [ a, b, c]
How can i add value to this elements dynamically? For example I want that each element get the value true
So it should look like this afterwards:
arr = [ a = true, b = true, c = true];
I tried the following: (using jquery framework)
$.each(arr, function(i){
arr[i] = true;
});
but then I just get
arr = [ true, true, true]
hope someone can help me! thanx