SimpleDialog box using jquery mobile

Mobile Framewok

HTML

<p>You have entered: <span id="dialogoutput"></span></p>

<a href="#" id="dialoglink" data-role="button">Open Dialog</a>
jQuery
$(document).delegate('#simplestring', 'click', function() {
  $(this).simpledialog({
    'mode' : 'string',
    'prompt' : 'What do you say?',
    'buttons' : {
      'OK': {
        click: function () {
          $('#dialogoutput').text($('#dialoglink').attr('data-string'));
        }
      },
      'Cancel': {
        click: function () { },
        icon: "delete",
        theme: "c"
      }
    }
  })
})