標籤:style blog color io ar div 代碼 html
1.Html代碼:
<select name="" class="qixian" id="tbCheckCycleUnit"> <option value="1">天</option> <option value="2">月</option> <option value="3">年</option> </select>
說明:id為tbCheckCycleUnit選中的值
寫法:var CheckCycleUnit = $("#tbCheckCycleUnit option:selected").text();
2.html代碼:
<div class="zqbb_mz"><span class="zqbd_mingz">貸款方式:</span><p> <label class="daikaun"> <input type="radio" name="category" value="category1" id="category1" class="xy_xuan" /> <span class="xy">信用</span></label> <label class="daikaun"> <input type="radio" name="category" value="category5" id="category5" class="xy_xuan" /> <span class="xy">抵押</span></label> <label class="daikaun"> <input type="radio" name="category" value="category2" id="category2" class="xy_xuan"/> <span class="xy">擔保</span></label> </p></div>
說明:name為catogry的一組radio選中的值
寫法:var BidCategory = $("input[name=‘category‘]:checked").val();//貸款方式