Use jQuery to make an array of div items

var boxes = $('.box');

$(boxes[0]).click(function() 
{
alert('hi');
}
Tech Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑