Home » Javascript » Make a series of dropdowns non functioning after selecting elements on each dropdown and clicking an apply button

Make a series of dropdowns non functioning after selecting elements on each dropdown and clicking an apply button

Posted by: admin August 19, 2018 Leave a comment

Questions:

I just made dropdowns that have their respective elements. What I want is to select an element on each dropdown and after clicking the apply button they can’t be edited anymore unless the edit button is clicked in turn the user can edit the dropdowns again using jquery

I just tried

document.getElementById("dropdown").disabled = true;

After clicking the button the dropdown is disabled. Is there any better way to do this.

Answers: