After adding the script, the second text input field that is supposed to
show depending on the selection option from the dropdown options on
the first input field stops showing.
Here is what happens when you select an option from the dropdown
options before adding the script:
Here is what happens when you select an option from the dropdown
after adding the script:
What's confusing more is that I have an Umbraco 8 project where I have a similar form using the select2 plugin and everything is working fine. Could the reason this is not working in the U10 be a result of the change from ASP.NET to ASP.NET Core?
Using the jQuery select2 plugin on an Umbraco 10 form
I have an Umbraco 10 form that works as intended until I add the following script:
After adding the script, the second text input field that is supposed to show depending on the selection option from the dropdown options on the first input field stops showing.
Here is what happens when you select an option from the dropdown options before adding the script:
Here is what happens when you select an option from the dropdown after adding the script:
What's confusing more is that I have an Umbraco 8 project where I have a similar form using the select2 plugin and everything is working fine. Could the reason this is not working in the U10 be a result of the change from ASP.NET to ASP.NET Core?
I would say that is unlikely since you are using javascript which has nothing whatsoever to do with .Net.
Are you getting any errors/warning in your browser debug console?
There are no errors logged in the console.
is working on a reply...