Aslında böyle birşey buldum. ama bununda sorunu
<form class="p-3">
<div class="form-group">
<label for="seeAnotherField">Gelir Seç</label>
<select class="form-control" id="seeAnotherField" name="name">
<option value="ornekBir"> Ornek 1</option>
<option value="ornekIki">Ornek 2</option>
<option value="manual">Manual</option>
</select>
</div>
<div class="form-group" id="otherFieldDiv">
<input for="otherField" type="text" class="form-control">
</div>
</form>$("#seeAnotherField").change(function() {
if ($(this).val() == "manual") {
$('#otherFieldDiv').show();
$('#otherField').attr('required', '');
$('#otherField').attr('data-error', 'This field is required.');
} else {
$('#otherFieldDiv').hide();
$('#otherField').removeAttr('required');
$('#otherField').removeAttr('data-error');
}
});
$("#seeAnotherField").trigger("change");<option value="Manual">Manual</option>
value kısmına yazdığım "Manual" yazısını kaydediyor.
ben istiyorum ki altta açılan text alanına yazanı kaydetsin