jquery append() 追加内容 remove() 删除回调
2018-03-07 18:07
316 查看
Html <div class="row1 height28 s_consignee_city"></div> <select name="shipping_method" class="selectForm" onchange="getShipCost();changeProductBarStyle(),changeSalesValesShow()" style="width:263px;"> js //根据运输方式查看邮编与城市对应关系的验证 function getShipCost(){ var ship_method = $('[name =shipping_method]').val(); if (ship_method == "ESEXP") { $("#look_over").remove(); $(".s_consignee_city").append("<a href='/file/Spain_City.xls' id='look_over' style='color:red'>查看</a>"); } else if (ship_method == "AUEXP") { $("#look_over").remove(); $(".s_consignee_city").append("<a href='/file/auexp-city.xls' id='look_over' style='color:red'>查看</a>"); } else { $("#look_over").remove(); } }
相关文章推荐
- jquery append() 追加内容 remove() 删除回调
- jquery append() 追加内容 remove() 删除回调
- jquery append() 追加内容 remove() 删除回调
- jquery append() 追加内容 remove() 删除回调
- jquery append() 追加内容 remove() 删除回调
- jquery append() 追加内容 remove() 删除回调
- jquery append() 追加内容 remove() 删除回调
- jquery append() 追加内容 remove() 删除回调
- jquery修改/追加/删除html网页中的内容示例
- jquery之设置元素内容(删除元素,使用remove(),empty()方法)
- jquery删除、清空<div>之间的内容---empty()与remove()区别
- 知识点三:JQuery--删除元素/内容-remove/empty
- jquery修改/追加/删除html网页中的内容示例
- jquery修改/追加/删除html网页中的内容示例
- 【JQuery】使用append()方法向元素内追加内容
- 【jQuery】使用append()方法向元素内追加内容
- jquery追加内容append
- 用Jquery动态append方式加入内容时css样式丢失的解决方法
- Jquery元素追加和删除的实现方法