Handling clicks on multiple divs
<p>I have the following code and want to write efficient jQuery code.</p>

<pre><code>    var divs = document.getElementsByTagName("div");
for (var tmp = 0; tmp &lt; divs.length; tmp++) {
    divs[i].onclick = handleDivClicks;
}

var divID;
var zoneID;
var y = 0;

function handleDivsClicks(e) {
    if (e.target.id == "divOne") {
        x = obj.setLength(function() {
        showMsgInDiv("Length");
    }, 2000);
    showMsgInDiv("Length Set");
    } 
    else if (e.target.id == "divTwo") {
        obj.clearLength(divID);
        showMsgInDiv("Length Cleared");
    } 
    else if (e.target.id == "divThree") {
        zoneID = obj.setZone(function() {
        showMsgInDiv("Zone Set. Ctr: " + y++);
    }, 2000);
}
</code></pre>

<p>All these are custom functions and I have not declared them in this post. I just want to find out how concise and efficiently can the above code be written in jQuery</p>
