我的网站上有一个简单的表格。例如:Select 1
和Select 2
。我希望如果我Select 1
值Home
,Select 2
值更改为例如residance
Select 1
。
如何用数据库做到这一点?我从数据库中获取这些值:
Home
values = Otels
,Select 2
Home
值=如果选中residance
(room
,apart
,Otel
),
如果选中2 stars
(3stars
,4stars
,<div class="row pick-size">
<div class="col-lg-4 col-md-8 col-sm-6">
<select class="selectpicker" data-size="3" data-style="select-with-transition btn btn-simple">
<option value="0">Select</option>
<option value="1">Home</option>
<option value="2">Otels</option>
</select>
</div>
<div class="col-lg-4 col-md-8 col-sm-6">
<select class="selectpicker" data-size="3" data-style="select-with-transition btn btn-simple">
<!--if selected Home show this values-->
<option value="1">residance</option>
<option value="2">room</option>
<option value="3">apart</option>
<!--if selected Otels show this values-->
<option value="0">2 stars</option>
<option value="1">3 stars</option>
<option value="2">4 stars</option>
</select>
</div>
</div>
)
$ npm outdated --depth=1 eslint
Package Current Wanted Latest Location
eslint 4.9.0 4.10.0 4.10.0 MyApplication1 > grunt-eslint
答案 0 :(得分:-1)