79260440

Date: 2024-12-07 10:44:39
Score: 1
Natty:
Report link

You can manually call the onchange and onunfoucs method code:

function update (elem) {
  if (typeof elem.onchange == "function") {
    elem.onchange()
  }
  if (typeof elem.onunfoucs == "function") {
    elem.onunfoucs()
  }
}

call update() with the input element after every set value

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 佩奇君