On 9 Mar, 09:30, "[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();
>         }
>     });
>
> });

I think you mean jQuery("#refresh").trigger("click");

Reply via email to