Code example not work

i don’t understand…if onchange execute first load…there is nothing saved