JS dynamically adds and deletes Option objects in select (sample code)
As shown below: Copy the code The code is as follows: // Dynamically delete all options in the select: function delAllOptions(){ document.getElementById("user_dm").options.length=0; }
2025-01-22