jQuery Visibility Test and Conditional Display

Check the console for an eyeful. And remember that .val() turns almost everything into a string. BTW, the following paragraph is p#test:

p#operator_avatar is visible

p#operator_avatar is invisible

This should only be available when you p#operator_avatar is visible.