pass eventdata to event handler in javascript
<p>I have two div :</p>

<pre><code>&lt;div id="div1"&gt;&lt;/div&gt;
&lt;div id="div2"&gt;&lt;/div&gt;
</code></pre>

<p>and i have the following jquery for div1:</p>

<pre><code> $('#div1').click(function(e)
{
alert(e.pageX + ' ' + e.pageY);
});
</code></pre>

<p>.
Now, i want to trigger click eventhandler of div1 to execute on clcicking of div2.
For this i wrote:</p>

<pre><code>$('div2').click(function(e)
{
$('#div1').trigger('click');
});
</code></pre>

<p>It's working fine but the problem is i am not able to get e.pageX and e.pageY in the event handler of div1.
How to pass eventdata of div2 click event handler i.e e to div1 clcick event handler.
Please help.</p>
