JQuery DOM Operation node Transfer replication

Source: Internet
Author: User

jQuery DOM Operation node Transfer replication$ (' div '). Append ($ (' P '))This moves the P tag to the div tag.$ (' div '). Append ($ (' P '). HTML ())is to copy the contents of the P tag into the div tag .$ (' div '). Append ($ (' P '). Clone (True))is to copy one into the div tag, the original label still retains$ (function () {
$ (". Nm_ul li"). Click (function () {/// when the clone parameter is set to True, you can also copy the event bound by the button to the New button on the $ (this). Clone (True). AppendTo (". Nm_ul"); Copy the node that is currently clicked and append it to the <ul> element})
});
A parameter true is passed in the Clone () method, meaning that the event that is bound in the element is copied while copying the element. Therefore, a copy of this element also has a copy function. If you do not want the event to be copied, you can write:$ (' div '). Append ($ (' P '). Clone ())Move one node on the page to another place using the internal and external insertion method of JQ (Append,appendto,prepend,prependto,after,before,insertafter,insertbefore), You can move the $ ("button") by simply passing the selected node in. Click (function () {
$ (this). AppendTo ($ ("#box"));//or Append $ ("#box"). Append (this);
});
Eclipse shortcut key conflicts with SystemCtrl+alt+down key default is Lenovo notebook graphics screen rollover occupy, in Eclipse does not work, in the settings to disable the video card shortcut key or not, and later the video card screen flip shortcut to modify the other to disable it.
ztree3.5.02 selected node times wrongAfter updating the jquery version, using jquery1.1.1, left click on the tree node when the error, although does not affect the display, but in the Chrome console display error uncaught typeerror:cannot Read Property ' NodeName ' of undefined jquery.ztree.core-3.5.js:614 reason: srcelement is not standard, does not conform to the standards, so in jquery 1.9 completely removed this property will code in the var n = E.srcelement.nodename.tolowercase (); replace with var n = e.originalevent.srcelement.nodename.tolowercase (); Replace with the zTree3.5.16 version after normal.
Eclipse sogou Pinyin Input method always become the traditionalIME Settings-Modify Cancel simple traditional Toggle shortcut key: Ctrl+shift+f

From for notes (Wiz)

JQuery DOM Operation node Transfer replication

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.