How do I enable/disable options in Select Box using jquery

前端 未结 3 1376
北海茫月
北海茫月 2021-01-17 12:03

I have a select box which contains the options and optgroup that are generated dynamically using php.Now when I select \"ALL\" all the other optgroup

3条回答
  •  清歌不尽
    2021-01-17 12:48

    You can use two variations on the syntax for the disabled attribute, depending on the version of HTML you are targeting:

    HTML4: 
    XHTML: 
    

提交回复
热议问题