In your code, you're trying to reinitialize the dialog on each click,
which won't work (as you've noticed). What you want to do is create
the dialog with the autoOpen option set to false. Then in your click
event you would call .dialog('open') to open the dialog:
jQuery('#aspecto').dialog({
autoOpen: false,
bgiframe: true,
height: 220,
width: 350,
modal: true,
overlay: {
backgroundColor: '#000',
opacity: 0.5
}
});
jQuery('tab').click(function(){
optionSelect = '#select'+jQuery(this).attr('car');
optionList = '#list'+jQuery(this).attr('car');
optiontype = '#type'+jQuery(this).attr('car');
jQuery('#aspecto').attr('title',jQuery(optiontype).attr('value'));
jQuery('#aspecto').dialog('open');
});
On Jan 26, 5:50 pm, aderiver <[email protected]> wrote:
> Hello community;
>
> I have the following problem once invoke a dialog () after closing it
> again to call does not work that may be
>
> This is the source code
>
> jQuery('tab').click(function(){
>
> optionSelect = '#select'+jQuery(this).attr('car');
> optionList = '#list'+jQuery(this).attr('car');
> optiontype = '#type'+jQuery(this).attr('car');
>
> jQuery('#aspecto').attr('title',jQuery(optiontype).attr('value'));
>
> jQuery('#aspecto').dialog({
> bgiframe: true,
> height: 220,
> width: 350,
> modal: true,
> overlay: {
> backgroundColor: '#000',
> opacity: 0.5
> }
> });
>
> });
>
> The first time that the label preciona works, but not the second time
>
> Thank you very much for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---