S P

S P

  • NA
  • 285
  • 213k

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)