$('input.ISSelectSearch').each(function(i) {
var box = new Object;
box.size = 80;
box.width = 110;
//CODE CODE CODE
});
How can I access the value of box which was set in the previous iteration? Alternatively, is it possible to access it via a key of some kind?
$('input.ISSelectSearch').each(function(i) {
var box = new Object;
box.size = 80;
box.width = 110;
prevsize = $(this).box[/* previous iteration element id or name */].size
//CODE CODE CODE
});
The problem is that I need to know the data associated with each 'input.ISSelectSearch' element box so that I can change them depending on the values of the current or preceding box objects. In other words I need a connection between the element box objects so that I can specify certain changes in one based on the values of another.