In the below select filed populating values from mysqlDB. By default i am hiding the next two read only fields. I need to show the hided 2 fields when the value changes in the select field(irrespective of the value). I am not familiar with java script, i have tried with one script, but it is not working. Please support.
<select id ="name" name="name" class="form-control" required>
<option value="" disabled selected>Choose Wallet</option>
<?php
//my query
echo '<option value="' . $row['group'] . '">' . $row['group'] . '</option>';//qry output to the select field
?>
</select>
<div id ="hide" class="form-group hide">
<div class="col-md-3 col-xs-12">
<input id ="od" value="<?php echo $od ?>" class="form-control" readonly/>
<input id="bal" value="<?php echo $bal ?>" class="form-control" readonly/>
</div>
</div>
<script type="text/javascript">
$("#name").change(function () {
$("#hide").removeClass('hide');
});
</script>