| | |
| | | <label class="col-sm-3 control-label">车型价格范围为:</label> |
| | | <div class="col-sm-9"> |
| | | <input type="text" oninput="checkIsYuan(this)" name="one" id="one" class="form-control newWidth" /> |
| | | 至 <input type="text" oninput="checkIsYuan(this)" name="two" id="two" class="form-control newWidth" /> 元 |
| | | 至 <input type="text" oninput="checkIsYuan(this)" name="two" id="two" class="form-control newWidth" /> GHS |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | function checkIsYuan(obj){ |
| | | var num = $(obj).val(); |
| | | if(!regDouble.test(num)){ |
| | | layer.msg("【元】格式不正确,保留两位小数"); |
| | | layer.msg("【GHS】格式不正确,保留两位小数"); |
| | | } |
| | | } |
| | | </script> |