Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67497

Remove an inputfield if I choose an option in the select before

$
0
0

I have this select, and I want that if I choose the option value="2" that the next inputfield of Shippment date disappears

<div class="form-group">
<label for="reason">Reden van storing</label>
<select id="reason" name="reason" class="form-control">
<option value="1">Tijdelijk niet leverbaar</option>
<option value="2">Uit assortiment, niet meer leverbaar</option>
<option value="3">Minder artikelen beschikbaar</option>
</select>
</div>

<div class="form-group">
<label>Shipment date</label>
<input type="date" name="shipment_date" required="" class="form-control" placeholder="Vul verzenddatum in">
</div>

Viewing all articles
Browse latest Browse all 67497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>