PDA

View Full Version : combo box problem



priyapratheep
Mar 26th, 2009, 08:32 AM
Hi friends,

In my form I am using combo box(select control).

I want to call a javascript function when i select a OPTION from the box.

onChange=\"javascript:pricecodes(this.form,"+db.getLineItemNo()+");

When i select one option it is working fine.

The problem is...

In my combo box i have three option A,R,M. At the form load time combo box displays the option A.So if i want to select A then i have to go to some other option either R or M and then come back and select A, then only the javascript function pricecodes is invoked.


What i want is If A is displayed in combo box at the loading of form, if i click A then the function should invoke(I used on click event too, In that case when ever i click the combo box funtion is invoking)


Please help me

Regards