I think `.hasClass('changed')` should be checked on `$('form.my-tip')`, not `$('input.my-tip')`