将类添加到其他类?

时间:2018-02-23 14:46:35

标签: javascript jquery

我想在点击bookmark_edit课程时向bookmark_icons添加一个课程。我怎么能用jQuery做到这一点?

<div class="bookmark_outer">
   <div class="bookmark_txt">
       <h4 id="bookmark_id">Bookmark 1</h4><a href="#" class="bokmarksave"> <img src="icheck-icon.png" class="bookmark_edit"> </a>
      <p> Lorem Ipsum is simply dummy text of the printing and </p>
       <p class="page_num">Page 3 </p>
   </div>
   <div class="bookmark_icon"> 
      <a href="#"><img src="edit.png" class="bookmark_icons"></a> 
      <a href="#" class="Bkhide"><img src="idelete.png" class="bookmark_icons"> </a>
   </div>
</div>

0 个答案:

没有答案