3

I have a "Categories" field in my section. I want to perform some JavaScript actions when a category is selected.

Is there any built-in event which will be triggered at that point?

3

Try something like this?

$("#fields-myCateogryField").data("elementSelect")
    .on("selectElements", function(e){console.log(e);})
    .on("removeElements", function(e){console.log(e);});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.