Where is the update button defined?
What is printed on the console when the code is executed? Please copy the contents of the console and paste it here.