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