diff --git a/demos2/options.html b/demos2/options.html
index d42c05f..252b6e9 100644
--- a/demos2/options.html
+++ b/demos2/options.html
@@ -247,6 +247,12 @@
Available Options
- Modes:
- button object
The HTML ID of the button. If false, one is generated.
+ text
+ - Type:
- String
+ - Default:
- inherited
+ - Modes:
- button object
+ The text of the button. If missing, object name is used.
+
theme
- Type:
- String
- Default:
- inherited
diff --git a/js/jquery.mobile.simpledialog2.js b/js/jquery.mobile.simpledialog2.js
index 7b3c77d..8575efd 100644
--- a/js/jquery.mobile.simpledialog2.js
+++ b/js/jquery.mobile.simpledialog2.js
@@ -167,7 +167,7 @@
close : true
}, props);
- self.butObj.push($(""+name+"")
+ self.butObj.push($(""+props.text+"")
.appendTo(pickerChoice)
.attr('id', props.id)
.buttonMarkup({