Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="form-group">
- <label>تحصیلات</label>
- <select name="educationId" class="js-example-basic-single form-control form-control-lg {{ $errors->has('educationId') ? 'is-invalid' : '' }}">
- <option value="">انتخاب کنید</option>
- @foreach(\App\Education::get() as $e)
- <option value="{{ $e->id }}" {{ old('educationId', $record->educationId) == $e->id ? 'selected' : '' }}>{{ $e->type }}</option>
- @endforeach
- </select>
- <div class="invalid-feedback">{{ $errors->first('educationId') }}</div>
- </div>
- <script>
- $(document).ready(function()
- {
- $('.js-example-basic-single').select2();}
- }
- <script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement