S P

S P

  • 1.8k
  • 285
  • 176.9k

Textbox enable /disable on drop down change

Mar 8 2017 10:24 AM

Hi,  i want to use javascript code to enable/disable the textbox on selection of value from drop down list. My javascript code is not working.

 

 

<script type="text/javascript">

function changetextbox() {

if (document.getElementById("mfi_4_a_i").value === "noy")

{ document.getElementById("sdd").disable='true';

} else {

document.getElementById("sdd").disable='false'; }

} </script>


Answers (3)