Define the selected option with the old input in Laravel / Blade

后端 未结 14 905
孤街浪徒
孤街浪徒 2020-12-04 22:04

I have this code:


                        
    
提交评论

  • 2020-12-04 22:34
    <option value="{{ $key }}" {{ Input::old('title') == $key ? 'selected="selected"' : '' }}>{{ $val }}</option>
    
    0 讨论(0)
  • 提交回复
    热议问题