Jan 19, 2010, 4:40 PM
[CLOSED] Messagebox prompt set cursor position to end
I want to show a messagebox prompt with textarea initally filled. Is it possible to set the cursor position of the textarea when it is shown so users can start typing and append to current value?
Ext.MessageBox.show({
title: 'Quick Search',
msg: 'Enter search text:',
width: 400,
buttons: Ext.MessageBox.OKCANCEL,
multiline: 200,
value: 'Initial Text To Append To - ',
fn: function(btn, text) {
if (btn == 'ok') {
//do my own thing
}
}
});