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 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!