Hi runrunforest,

To elaborate on Benn's explanation, the $.each and $().each() methods
provide two arguments inside the callback you supply. The first is the
index (either an enumerated key for arrays or a string key for
objects). The second is the value (the value associated with the
current key).

The docs for $.each are here:
http://docs.jquery.com/Utilities/jQuery.each#objectcallback


On Sep 8, 11:44 am, Benn <bennmey...@gmail.com> wrote:
> i is the count for the each statement making a key for the array: for
> example the first dropdown option would have an array key/value
> pairing of '0','com1'
>
> On Sep 8, 2:06 am, runrunforest <craigco...@gmail.com> wrote:
>
> > Owsome Benn. But i don't understand why "i" is used there ?

Reply via email to