How to call both onchange,onfocus events from HTML Form Element Attributes?
931454May 11 2012 — edited May 11 2012Hi All,
It would be greatly appriciated if some one can help me doing this.
I have two drop down lists DEPARTMENTS,EMPLOYEES.
When chosen department name from DEPARTMENTS, it calls an application process which populates the list employees in EMPLOYEES list.
When I choose an employee from EMPLOYEE list I have various fileds which will be populated with the employee details such as hiredate, job, sal.
It all works fine but I noticed a little problem.
When the EMPLOYEES list is populated by the application process when a department name is selected, it does not fire the onchange Javascript fucntion and hence all employee fields are blank.
To overcome this, I want to explicitly set the focus to EMPLOYEES and call the onfoucs function, but how can i call both onfocus AND onchange from EMPLOYEES field HTML Form Element Attributes? It seems only one is working the second is ignored when seperated with colon.
Please help.
Thankyou.
Raj.
Edited by: Rajesh Murarishetti on 11-May-2012 04:45
Edited by: Rajesh Murarishetti on 11-May-2012 04:50