jQuery - Disable Form Fields

后端 未结 5 1568
礼貌的吻别
礼貌的吻别 2020-12-13 01:54

I have 2 fields: 1 input, 1 select box.

Is it possible to make the browser disable one of the fields when the user uses the other?

For example, if the user i

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 02:28

              
    
    

    You'll also need to add a value attribute to the first option under your select element:

    
    

提交回复
热议问题