【发布时间】:2023-03-19 10:44:01
【问题描述】:
当我从名为State 的选择框中选择一个值时,我想在名为Region 的相应选择框中填充值。我该如何解决这个问题。
<div class="form-group col-lg-4 col-md-4 col-xs-12{{ $errors->has('state') ? ' has-error' : '' }}">
<div class="field-label">State <span class="required">*</span></div>
{!! Form::select('state', $states, "",[]) !!}
@if ($errors->has('state'))
<span class="help-block">
<strong>{{ $errors->first('state') }}</strong>
</span>
@endif
</div>
<!-- Region Selection -->
<div class="form-group col-lg-4 col-md-4 col-xs-12{{ $errors->has('region') ? ' has-error' : '' }}">
<div class="field-label">Region <span class="required">*</span></div>
{!! Form::select('region', $regions, "",[]) !!}
@if ($errors->has('region'))
<span class="help-block">
<strong>{{ $errors->first('region') }}</strong>
</span>
@endif
</div>
【问题讨论】:
标签: javascript jquery ajax laravel