Add onChange callback
Update example