微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何根据其他选择标签的选择来选择表单选择标签?

如何解决如何根据其他选择标签的选择来选择表单选择标签?

如果我确实先从标签中选择了汽车品牌,选择它允许我只从相同品牌的车型中进行选择,就像我选择了 (BMW) 我可以找到这样的 (X6,X3) 一样。 其他品牌的型号应该不会出现吧。

我的刀片文件

  <input type="text" class="form-control" name="searchbrand" list="brandsearch" id="searchbrand" 
    placeholder="Search By Brand Of The Car" aria-label="Recipient's username" aria- 
    describedby="button- 
    addon2">
      <datalist id="brandsearch">
        @foreach ($brands as $brand)
        <option class="brandid"  value="{{strtoupper($brand->brand)}}: {{$brand->model}}">
        @endforeach
        </datalist>


    <input type="text" name="searchmodel" class="form-control" aria-label="Sizing example input" 
     list="modelsearch" aria-describedby="inputGroup-sizing-sm">
     <datalist id="modelsearch">
      @foreach ($models as $model)
      <option   value="{{$model->model}}">
      @endforeach
    </datalist>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。