var dlg = $.messager.prompt('My Title', 'Please type something', function(r){ if (r){ alert('you type: '+r); }});dlg.find('.messager-input').val('predefined text');