DhtmlXCombo - how do i set the cursor at the begining of the

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


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/
})