here is my script. What I am trying to do is to trigger it using onchange event. But it seems does not work very well. I have tried edit here and there but still facing prob
you can used this code with file controller in html. any only pass parameter and see the output