我有以下代码。我想从此结果中删除所有selected
类。我想从qulidd
课程中做到这一点。
<div class="search_slct2 qulidd">
<select id="degree" multiple="multiple" name="degree" class="jqmsLoaded" style="display: none;">
<option value="1">BE</option>
<option selected="" value="4">MBA</option>
<option selected="" value="2">MCA</option>
<option value="3">ME</option>
</select>
<div class="ms-options-wrap" style="position: relative;">
<button>MBA, MCA</button>
<div class="ms-options" style="min-height: 200px; max-height: 200px; overflow: auto; display: none;">
<ul style="-moz-column-gap: 0px;">
<li>
<label for="ms-opt-241" style="padding-left: 37px;">
<span class="custom-checkbox">
<input type="checkbox" title="BE" value="1" id="ms-opt-241" style="">
</span>
BE
</label>
</li>
<li class="default selected">
<label for="ms-opt-242" style="padding-left: 37px;">
<span class="custom-checkbox selected">
<input type="checkbox" title="MBA" value="4" id="ms-opt-242" style="">
</span>
MBA
</label>
</li>
<li class="default selected">
<label for="ms-opt-243" style="padding-left: 37px;">
<span class="custom-checkbox selected">
<input type="checkbox" title="MCA" value="2" id="ms-opt-243" style="">
</span>
MCA
</label>
</li>
<li>
<label for="ms-opt-244" style="padding-left: 37px;">
<span class="custom-checkbox">
<input type="checkbox" title="ME" value="3" id="ms-opt-244" style="">
</span>
ME
</label>
</li>
</ul>
</div>
</div>
</div>
答案 0 :(得分:3)
你可以这样做。
SELECT
VU.*,
ISNULL((SELECT TOP 1 UP.uFileName FROM tmpUserPhotos AS UP
WHERE UP.userid = VU.userID), 'dflt.jpg') AS userImg
FROM [vw_tmpUsers] VU
答案 1 :(得分:2)