show/hide drop down

后端 未结 4 1032
野的像风
野的像风 2021-01-26 07:28

here is my code:




 New Document 


        
4条回答
  •  后悔当初
    2021-01-26 08:11

    Your biggest issue here is that the javascript is going to execute prior to the radio buttons being created. Therefore document.getElementById(...) is not going to find the element, as it doesn't exist. Try adding your code to a function and having that function run onload of the body.

提交回复
热议问题