我如何模拟bouton上的点击"编辑"通过使用jquery?
<ul class="sa-address-list">
<li class="sa-address-row util-clearfix">
<div class="sa-address-wrapper " data-id="5445664">
<div class="sa-address-item selected" data-id="5445664">
<input type="radio" checked="checked" name="addressId" class="select-radio-input" value=“5445664”>
<div class=" si-username">namename</div>
<ul class="si-bg sa-location">…</ul>
<div class="si-bg sa-mobile-number">phone</div>
<p class="si-operation">…</p>
<a class="si-edit" href="javascript:;">Edit</a>
</p>
<i class=“shop here”>Ship to this address</i>
答案 0 :(得分:0)
$('.si-edit').trigger('click');
http://api.jquery.com/trigger/
或
$('.si-edit').click();
http://api.jquery.com/click/