Just move reset declaration out of function, because javascript handlers need to be declared in global scope. 
1
solved function called on click not defined
 
Just move reset declaration out of function, because javascript handlers need to be declared in global scope. 
1
solved function called on click not defined