I am working in jquerymobile datebox customflip, plugin. i am having problem in 3 things. first in title, how can i change title 'undefined' second how can i change button text 'Looks Good'. Third how can i show text on input instead of index
heres jsfiddle
code
<h2>Custom Box Mode</h2>
<script type="text/javascript">
jQuery.extend(jQuery.mobile.datebox.prototype.options, {
'customData': [ {
'input': true,
'name': '',
'data': ['Single', 'Separated', 'Involved', 'Married','Widowed','Lover','Other']
}],
'useNewStyle': false,
'overrideStyleClass': 'ui-icon-dice'
});
</script>
<style>
.ui-icon-dice {
background-image: url('http://dev.jtsage.com/jQM-DateBox/img/dice.png') !important;
background-repeat: no-repeat;
background-position: 99% 50%;
}
</style>
<div data-role="fieldcontain">
<label for="cf">Custom</label>
<input name="cf" type="date" data-role="datebox" id="cf" data-options='{"mode": "customflip"}' />
</div>