getting id of elements inside the div
<pre><code>&lt;div id="maindiv"&gt;
    &lt;DIV id="first"&gt;first div&lt;DIV&gt;
    &lt;DIV id="second"&gt;second div&lt;/DIV&gt;
    &lt;input id="input" type="text"/&gt;
    &lt;button id="button" value="send"&gt;&lt;/button&gt;
&lt;/div&gt;
</code></pre>

<p>I want to get the id of the div inside the main div when one of the inner div is clicked using jquery. How can this be done?</p>
