Rohit Dabas
Rohit Dabas

Reputation: 13

I want to disable an option in a form depending upon the option I have selected above using javascript

I am using this code, but it is not disabling the option below

enter image description here

Upvotes: 0

Views: 33

Answers (1)

Dimitri Mockelyn
Dimitri Mockelyn

Reputation: 1545

Try with disabled=false first. It's a boolean, not a string

Also, you should separate your instructions in your first if statement

Upvotes: 1

Related Questions