The logic in the
change() event handler is not being run when the value is set by
val(), but it does run when user selects a value with their mouse. Why is this?
Practice As Follows
Do this instead: