[Solved] enabling of textbox when a value in a drop down box selected [closed]


Below is sample code for enable textbox on selectbox option select.

Please do required changes.

<script type="text/javascript">
function showtextbox()
{
var x=document.getElementById("intext").
x.disabled=false;
}
</script>

</head>
<body>

<form>
<select onChange="showtextbox()"">
    <option >one</option>
    <option>two</option>
</select>
<input type="text" id="intext" name="intext" disabled='disabled'>
</form>

</body>
</html>

Use your php code to connect and insert data in database.

2

solved enabling of textbox when a value in a drop down box selected [closed]