【发布时间】:2015-07-25 15:08:13
【问题描述】:
我有一个 Bootstrap 选择框,里面有一个选项,点击事件触发 jQuery 的操作。不幸的是,此功能在我的 iOS 设备上不起作用。
HTML:
<div class="form-group">
<label for="selectPropertyLocation">Location:</label>
<select class="form-control" id="selectPropertyLocation">
@foreach ($allLocations as $location)
<option value="{{ $location->location_id }}">{{ $location->name }}</option>
@endforeach
<option selected style="color:red;">Empty</option>
<option id="newPropertyLocation" style="color:green;">Add A New Location</option>
</select>
</div>
jQuery:
$('#newPropertyLocation').click(function(){
$('#addPropertyLocation').modal({
show: 'true'
});
});
【问题讨论】:
标签: jquery html ios twitter-bootstrap responsive-design