Javascript - innerHTML not working with HTML select menus

后端 未结 8 1417
眼角桃花
眼角桃花 2020-11-30 15:18

In my HTML page I have 2 select menus with IDs \"month\" and \"day\" - \"day\" is empty when the page loads, \"month\" has 12 options with values 1-12 corresponding to Janua

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 15:34

    This is a known issue for IE.

    KB article with workaround: http://support.microsoft.com/kb/276228

    Also: dupe of: innerHTML replace does not reflect

    EDIT: Here is my working sample based on your code:

    
    
    
     Selects
     
     
     
     
    
        
        

提交回复
热议问题