Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vincent on Apr 24, 2008 02:04
open dhtmlx forum
How to Hi-light Text in Combo On Click

1. Question ?
I have one combo box with this code
var y=new dhtmlXCombo("combo_zone2","FontSize",80);
y.addOption([[12,12],[14,14],[16,16],[18,18],[20,20],[22,22],[24,24],[32,32],[48,48]]);
    y.setComboText("[ Size ]");
Next, I want It action "Hi-like Text" in combo box for ready to input new data
Ex. When i want to set new value of font-size in MS-word when i click in Font-Size Combo it will mark Hi-light text in Font-size.

2. Question ?
How can i config my combo it get just number. Because want to use it in Question 1 too.

Answer posted by Support on Apr 24, 2008 05:28
>>I have one combo box with this code
Not possible by API, but can be done by direct DOM manipulations

    combo.DOMelem_input.onfocus=function(){
       this.select();
    }