Is there a way to speficy default textbox value for $.messager.prompt ? It would be nice if there's one more parameter after callback parameter.
$.messager.prompt('My Title', 'Please type something', function(r){
if (r){
alert('you type: '+r);
}
}, 'default value parameter here');
My Workaround at the moment :
$.messager.prompt('My Title', 'Please type something', function(r) {
if (r) {
alert('you type: ' + r);
}
});
$('.messager-input').val('default value').focus();