Sure. If you want that in the content area of the dialog:
$('<a href ="#"><img style="border:0; cursor:hand" alt="Update Model"
src="..\images\update.gif" /></a>').dialog({ modal: true });

or

<div id="dialog">
  <a href ="#"><img style="border:0; cursor:hand" alt="Update Model"
src="..\images\update.gif" /></a>
</div>
<script>
  $('#dialog').dialog({ modal: true });
</script>

or, if you want it in the button pane:

$('#dialog').dialog({ modal: true, buttons: {'placeholder':null} })
.parents('.ui-dialog').find('button:contains(placeholder)')
.replaceWith('<a href ="#"><img style="border:0; cursor:hand" alt="Update
Model" src="..\images\update.gif" /></a>');

- Richard

On Mon, Aug 31, 2009 at 1:28 PM, Kemps Almeida Vieira <
[email protected]> wrote:

>
> Hi Richard, I understand you...you're right!!! Let me change my
> question.
>
> Is it possible to define a html, like this "<a><img alt="..."></a>" on
> modal form JQuery UI Dialog?
>
> For example:
>
> <a href ="#">
> <img style="border:0; cursor:hand" alt="Update Model" src="..\images
> \update.gif" />
> </a>
>
> Tks!
>
> On Aug 31, 2:44 pm, "Richard D. Worth" <[email protected]> wrote:
> > Why are you trying to set the alt attribute on a button? It's intended
> for
> > IMG and AREA elements:http://en.wikipedia.org/wiki/Alt_attribute
> >
> > - Richard
> >
> > On Mon, Aug 31, 2009 at 9:07 AM, Kemps Almeida Vieira <
> >
> > [email protected]> wrote:
> >
> > > How can I set a button "Alt" attribute in a dialog modal form?
> >
> > > Follow an example about button "OK" in my dialog modal form:
> >
> > > $("#modalForm").dialog({
> > >                  bgiframe: true,
> > >                  autoOpen: false,
> > >                  modal: true,
> > >                  buttons: {
> > >                      Ok: function() ...
> > > ...
> >
>

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