Since you want to make this your primary button I would also make sure you
have closeonescape set to false or have functionality to handle the keypress
for 27 (esc key).

-------------------------------------------------
Brandon Ryall
Software Developer
eMaint Enterprises LLC
438 N. Elmwood Road, Suite 201
Marlton, NJ 08053
P 856-810-2700 x7180
F 253-323-6353


On Mon, Oct 5, 2009 at 2:29 PM, sAvEOUrplAnEt <[email protected]> wrote:

>
> For "X" close:
>  -
> $(this).parents('.ui-dialog:first').find('.ui-dialog-titlebar-close').remove();
>
> For the button you can try this:
>  -  $(this).parents('.ui-dialog-buttonpane button:eq(0)').focus();
>
>
> Goodluck JQuerying!
>
>
>
>
> On Mon, Oct 5, 2009 at 11:26 AM, mvbaffa <[email protected]> wrote:
>
>>
>> Hi,
>>
>> I am new to jQuery and I would like to remove the close Icon (the "X"
>> that closes the dialog box).
>>
>> I have one button in the dialog, I need also to make this button the
>> default button. That is when I press enter the button event will be
>> fired.
>>
>> Thanks in advance
>>
>>
>>
>
>
> --
> MigsAbagat
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to