title: jQuery modal dialog button text
body: <p>Based on the code below to show a JQuery dialog, the button text shows up as the literal "b" as opposed to the value of the variable b.  </p>
  
  <p>Ie: <code>showWarningDialog('myBody', 'myTitle', 'go')</code> shows a dialog with a button labelled <code>b</code> instead of <code>go</code>.  </p>
  
  <p>How can you get <code>go</code> to appear?</p>
  
  <pre><code>function showWarningDialog(theBody, theTitle, buttonText) {
      var t = "Warning";
      if (theTitle != null) {
          t = theTitle;
      }
  
      var b = "Ok";
      if (buttonText != null) {
          b = buttonText;
      }
  
      $("#div-dialog-warning div").text(theBody);
  
      $("#div-dialog-warning").dialog({
          title: t,
          resizable: false,
          height: 160,
          modal: true,
          buttons: {
              b : function () {
                  $(this).dialog("close");
              }
          }
      });
  }
  </code></pre>