Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Uthay on Jul 30, 2009 07:27
open dhtmlx forum
DhtmlXCombo - how do i set the cursor at the begining of the combo field when the user input longer word than the field on screen.

DhtmlXCombo - how do i set the cursor at the begining of the combo field when the user input longer word than the field on screen.

OnBlur it should automatically go to the start of the entered text rather than staying at the end of the text

How would i implement this?

regards

Uthay
Answer posted by Alex (support) on Jul 30, 2009 07:49

Hello,

combo doesn't provide such the described functionality. But there is onKeyPressed event. You can try to use it in this case:

combo.attachEvent("onKeyPressed",function(){
  var input = combo.DOMelem_input; /*input object*/
  var input_value = input.value;
  /*your code here*/
})