Have you already bound a function to that elements click event?

Kris

On Mar 9, 12:30 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have this link that I like to automatically 'click' in the script:
>
>         <a href="#" id="refresh" >test link</a>
>
> here is my code, but it does not 'click', any idea? thanks.
>
> jQuery(document).ready(function(){
>     jQuery(".block").draggable({helper: 'clone'});
>
>     jQuery(".drop").droppable({
>             accept: ".block",
>             activeClass: 'droppable-active',
>             hoverClass: 'droppable-hover',
>             drop: function(ev, ui) {
>             jQuery("#refresh").click();
>         }
>     });
>
> });

Reply via email to