Use trigger function:

http://docs.jquery.com/Events/trigger

On 3/9/08, [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();
>         }
>     });
> });
>



-- 
http://jquerybox.com - jQuery forum

Reply via email to