Javascript-js upload Problem

Source: Internet
Author: User

These small pieces are generated by the Add button below, if the form is OK, now it's trouble,
Upload button is JS write plug-in, must be rendered to use, if it is added with append, buttons can not be used, there is no way to solve.

Reply content:

These small pieces are generated by the Add button below, if the form is OK, now it's trouble,
Upload button is JS write plug-in, must be rendered to use, if it is added with append, buttons can not be used, there is no way to solve.

jquery on Method:

$("body").on("click", '上传按钮的id或类名', function(){    // 触发上传事件});

Using the JS implementation, the principle is to listen to the body's click event, when the Event.traget as the target trigger event.

Actually do not understand what you say the upload button is JS write plug-in specific what meaning, I temporarily think that is the click button will call this plug-in, if not the words please describe the more detailed point it.

  • Related Article

    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.