$('#myid')[0].onclick

to call:

$('#myid')[0].onclick()

DOM element property, not jQuery method.
(again!) ;)

On Fri, Sep 5, 2008 at 8:36 AM, Drew LeSueur <[EMAIL PROTECTED]> wrote:

>
> $('#myid').click()  will trigger the click event;
>
> and
>
> $('myid').click(function(){alert('clicked');});  will bind that
> function to the click event
>
> but how do I return the function that would be called when $('#myid')
> is clicked? (note: return, not call)
>
> Thank you,
>
>

Reply via email to