jquery append() 追加内容 remove() 删除回调
2018-03-07 18:07
274 查看
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修改/追加/删除html网页中的内容示例
- jquery删除、清空<div>之间的内容---empty()与remove()区别
- 【jQuery】使用append()方法向元素内追加内容
- jquery修改/追加/删除html网页中的内容示例
- jquery之设置元素内容(删除元素,使用remove(),empty()方法)
- jquery追加内容append
- 【JQuery】使用append()方法向元素内追加内容
- HDFS文件内容追加(Append)
- jQuery 追加元素的方法如append、prepend、before
- 拉动滚动条追加内容,无限延伸document高度 $(window).scroll(function(){if($(window).scrollTop() + $(window).height() == $(document).height()) { $("body").append(html) } })