Hi,
I have an array filled with artificiality created option elements, the way I create them is the following:
var daysArr = new Array();
for(i=1; i<=31; i++){
daysArr.push('<option value="'+ i +'">'+ i +'</option>');
}
$(daysArr.join(''));
What I'm trying to do is to use a selector on this array, like that:
$(daysArr.join('')).find('option:lt(5)');
The only thing I got is an empty array, even for .find('option'); There is the following info in jQ documentation for lt() selector:
Select all elements at an index less than index within the matched set.
Mine array is an index type array. I'll be glad if someone can tell me from where comes the problem.