See
http://groups.google.com/group/jquery-ui/browse_thread/thread/64941f5e24a999ed
- Richard
On Thu, Feb 5, 2009 at 12:26 PM, Air YT 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:
>
>
Try adding a space between sButtonText and the colon.
If that doesn't work, build the string first and then use it like
this:
function ShowDialog( sButtonText ) {
sButtonText = "Button Text:" + sButtonText; //or just pass it in
the parameter
$("#Dialog").dialog( "option","buttons", { "Cl