Unable to target the build-in Mura form using Jquery.
The following is the code:
$("#field-whatisyourcurrentplan").on('change',function(){
var ident = $(this).find("option:selected").attr("id");
console.log(ident);
switch (ident){
case "field-26dee5f9-5c7c-476a-a7d1-54d826943efa":
console.log("Other selected")
break;
}
});
I was able to find documentation in 7.1 where their is a built in feature to have the script to run at the same time as the Mura form is open Mura Documentation. However, the version of Mura I am running is in 6.2.
Per my understanding, I should be able to just include my function into the page do to the form is not rendered asynchronously. However, when I do just include my code, nothing happens. When I insert my code in the console, it works fine.
My question is: How can I run my function in the Mura site manager, where the page resides?