I am trying to create a form which when the select element \'parcel\' is selected it will show a div but when it is not selected I would like to hide the div. Here is my mar
Try this:
$(function() { $("#type").change(function() { if ($(this).val() === 'parcel') $("#row_dim").show(); else $("#row_dim").hide(); } }