thanks for the answer ! i'll test it right now
Mike Alsup a écrit : >> when i first click on the radio button, i've got the blockui box, with >> content ok.. but if i enter wrong code, close the blockui box, and retry >> another code, the content of the box changed.. to undefined ! i can't >> understand why.. > > That's a subtle thing about blockUI. Each time you invoke $.blockUI > the current contents of the blocking message are removed from the DOM > via empty(). So if you're going to pass a DOM element to blockUI you > need to cache it so that it doesn't get lost. If you add this as the > first line in your doc-ready hook you should be fine: > > var codepromo = $('#codepromo')[0]; > > You can see this same technique used in the example at: > http://www.malsup.com/jquery/block/ > > Mike > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/