</div><div>GiveAways &
Sponsors<br>WIN a Car
Vacation for 2
Dinner for 2
Tickets for 2 </div>
<div>Abby & Cera together with our business partners will grant you 100 IC Points simply because you love San Diego like the rest of the 1,322,533 current residents.
Want to earn more points, cash or rewards? Invite your friends to join us while we extend you with more points that you can redeem thru your neigborhood restaurants, shops, travel or see a show. </div>
<div>PICTURE</div>
<div>JOIN & share your skills/talents through your choice of social networking tools. Show your recent meal, home made or store bought; restaurant experience with friends or significant someone; recent store or online purchase; entertainment or social activity.
Save money, earn rewards & garner points thru our business affiliate,
We will show you an innovative way to reach & build your important contacts; form or join a clique, collaborate and meet new friends while you take advantage of our daily deals through this site.</div>
// get all div tags into an array-like structure
divs = document.getElementsByTagName('div');
// add an event listener to each div square. the goal is that if a
// user clicks on the 2nd square,
// the alert box should say 2. if the user clicks on the 5th square,
// it should say 5
// though this doesn't happen with the below code. why?
for(i=0;i<divs.length;i++) {
divs[i].onclick = (function() {
var myNum = i;
return function() {
alert("Click handler: " + myNum);
};
})();
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.