See

http://groups.google.com/group/jquery-ui/browse_thread/thread/64941f5e24a999ed

- Richard

On Thu, Feb 5, 2009 at 12:26 PM, Air YT <air...@gmail.com> wrote:

>
> Howdy,
>
> Just wondering if it's possible to dynamically change a buttons text
> using a passed variable in a function:
>
> eg: here is my test:
>
> function ShowDialog( sButtonText ) {
>    $("#Dialog").dialog( "option","buttons", { "Close Window": function
> () { $(this).dialog('close'); } }, { "Button Text:" + sButtonText:
> function() { $(this).dialog('close'); } } );
>    $("#Dialog").dialog( "open" );
> }
>
> but that is throwing javascript errors at the plus sign. any ideas?
>
> thanks in advance!
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to