Trigger a function when an element gets enabled/disabled

后端 未结 3 1316
礼貌的吻别
礼貌的吻别 2020-12-16 17:53

This seems like a relatively simple thing but I can\'t find anything anywhere on how to do it. I have a modal that opens with a disabled input while waiting for async data.

3条回答
  •  悲哀的现实
    2020-12-16 18:47

    I once had a project with it, but I lost the motivation to do it. I searched for a way to do that kind of stuff, and I found that MutationObserver should be a good way to do it.

    Take a look : MutationObserver

    And maybe there too : Mutation Events

    I hope I understood your question correctly.

提交回复
热议问题