hi i would like to know how to read every array item using jQuery
.
I'm getting some li
values, push them in an array and then sort them using a bubble sort function
function sortSizes(sizesArr) {
for (var i = 0; i < sizesArr.length; i ++) {
for (var j = i + 1; j < sizesArr.length; j ++) {
....
...
}
}
}
sortSizes(myArray)
all what i need then is to get every item in array and added to an href
attribute