Calling Javascript on Change event

  • 19 April 2016
  • 3 replies
  • 11 views

Badge +3

I have a requirement where i have to calla jquery or javascript on dropdownlist change or tree control change event. Can anyone help on this. I am able to call javascript on button click but need it on change event of these controls.


3 replies

Userlevel 3
Badge +8

Dear ,

 

Im not really sure how it worked for u in some of events and didnt work for others ,

but from wt i know , is u need to have a data label on ur form with expression that includes the javascript in it , just keep the "literal" option unchecked ,

and on any event u want to fire the javascript , 

for example , on drop down list change event

"Set control properties" , go to ur data label , and CHECK the literal option ,

in this way on ur drop down list changing event , u will check the literal option and fire its java script ,

 

Hope it helps!

Regards.

Badge +3

I have checked the literal property. it works fine for button controls but not for any other controls like dropdown or tree control. Can you please guide on these. is any specific type of function to be called in javascript for these controls so that in can be invoked.

 

Userlevel 3
Badge +8
Dear ,

Could u show me the function u r trying to trigger ?

Regards.

Reply