[jQuery] execute click in the scrip

[jQuery] execute click in the scrip


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();
}
});
});