CalcBuilder Forum

On Change event

User reconice 2017-02-03 18:42:28

Hi there, I could not find a way to use javascript listen to the onchange event of a SELECT (Option List). Any hints? thank you.

User reconice 2017-02-03 19:05:29

Solved!
Tks

Moonsoft support 2017-02-06 12:13:22

Hi,
ok, just in case it may help others, you can use the first javascript tab in order to add an event listener using jquery, something like

CB("select").change(function(){

alert("This select has changed!");
});

replacing yourfieldname for your real variable name should do the work.

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!