Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm working on a scenario in which I have one dropdown with 12 values and 12 elements displayed based on the dropdown value. If value 1 is selected, the first element is displayed, if value 2 is selected, two elements are displayed, and if value 12 is selected, all 12 elements are displayed in order. I'm attempting to send these values as an xml string. If the user accidentally selects dropdown value 6 and sets the values for the fields, then decide it should be only 3 value to be set . The dropdown value 6 which is set 1st is only sent to xml, I want to pass only the values that are based on the dropdown value. document.getelementbyid(id).disabled is not helping me with this scenario. I want reset the values sent based on the dropdown every time.


What I have tried:

document.getelementbyid(id).disabled is not helping me with this scenario
Posted
Comments
0x01AA 2-May-22 14:44pm    
Not sure wheter you mean remove, it's then final: Element.remove() - Web APIs | MDN[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900