views:

14

answers:

0

Hello, i am new to this forum. I want to set some value in the editable field made by closure library. please suggest some function so that given value is set and cursor is also set to end of the text. MY code is:

var myField = new goog.editor.Field('editMe'); myField.makeEditable();

// myField.setHtml(false,response['msg']); this line sets the value and places cursor in front. Is there any other function like document.getelementbyid.value which sets the given value and place cursor in the end. please help.. Thanks in advance..