Hi,

I explain my problem:
I have a datepicker UI, and when i click on a day,
I have to refresh the datepicker when I click outside it.

onSelect: function(date,inst)
                        {
                                ...
                                alert('A');
                                $('body').click(function(event){
                                        alert('B);
                                        
$("#datepickerId").datepicker("refresh");
                                        return false;
                                });
                                
$("#datepickerId").click(function(event){event.stopPropagation
();});
                        ...

                        }

The problem is that "click function" is executed a lot of times,
I do an example:
   1) click on a day => alert A
   2) click on another day => alert A
   3) click on another day => alert A
   4) click outside the datepicker => alert B B B !!!! Why???

Is as there is some kind of "memory" of what i've clicked...

Someone can halp me?

Reply via email to