I'm making a website and there's a form in it... now what im trying to do is very simple but i just dont know how anymore so im asking you guys. In this form you can select whether or not you want custom text on the clothing you buy. you can select yes and no with the select statement. and next to it there's a input text where you can fill in this text. What i want to do is that when the value of the select is no or still default, the input text gets disabled and when the value is yes it gets enabled.
Screenshot of output http://prntscr.com/4ym079
My Code:
<div class="form-group col-md-6" style="margin-bottom: 25px; padding:0;">
<label class="col-md-12 control-label" for="producttext">Eigen text op product *</label>
<div class="col-md-12">
<select id="producttext" name="producttext" class="form-control" required="">
<option class="active" value="default" selected disabled>Eigen text op product</option>
<option value="nee">Nee</option>
<option value="Ja">Ja(+€3,50)</option>
</select>
</div>
</div>
<script>
</script>
<div class="form-group col-md-6" style="margin-bottom:0;">
<label class="control-label" for="product_text">Uw eigen text*</label>
<input id="product_text" name="product_text" placeholder="Indien Ja" class="form-control input-md" type="text">
</div>
If you still have any questions, please ask me.
DeusGladio