Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by prabhu on May 20, 2008 20:39
open dhtmlx forum
How to set focus for customCombo

Hello, Could you please tell me,how to set focus for the dhtmlXCombo.

 Normally,we used to set focus

<select name='applicationId' style='width:137px' onKeyPress='moveFocus(event, 'loginAction', 1)' &gt; <option value='sel'&gt;Select</option&gt; <c:forEach var='application' items='${LoginPresentationVO.applicationList}' &gt; <option value='<c:out value='${application.projectId}'/&gt;'&gt;<c:out value='${application.projectName}'/&gt;</option&gt; </c:forEach&gt; </select&gt; theForm.applicationId.focus();

 

How to set focus for customCombo = new dhtmlXCombo('applicationId','alfa1',150);

Answer posted by Support on May 21, 2008 05:31

You can use

customCombo.DOMelem_input.focus();