I have some jQuery sliders on a web page and I want to get their values and store those values in an Array.
I didn't think this would be a problem as I having been getting the slider values no problem when I have been accessing them as follows:
So I thought the best way to get all the values would be to get a wrapped set of all the sliders and then iterate through this and get all the values as follows:
but it's not working. I've used alerts to debug, and it's the code in the for loop that is the problem. As far as I can see, this code is getting a wrapped set of divs with class 'slider', getting the one at the index of 'i', getting the value of the slider and assigning it to the correct element of the array.
I have used $('div.slider').size() to see that the wrapped set had elements to it and it did, so I am very confused and wonder if anybody can point me in the right direction.