search

Home  >  Q&A  >  body text

javascript - How to monitor the change event of input[type="file"] generated in the future?

It’s not easy to use the delegate method, I don’t know why

$(selector).delegate(childSelector, 'change', function () {}
为情所困为情所困2865 days ago624

reply all(3)I'll reply

  • 世界只因有你

    世界只因有你2017-05-19 10:18:02

    $(selector).on(event,subselector,function) Dynamically generated DOM event binding uses on

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-19 10:18:02

    For jquery, it is usually bound with on.

    reply
    0
  • 黄舟

    黄舟2017-05-19 10:18:02

    The event will be triggered when the text box loses focus

    reply
    0
  • Cancelreply