Ideally you should use the "hidden" class which will later makes it possible to unit test (by checking whether the class is set or not).
Here you could replace it with `.toggleClass('hidden', val);` where `val = $(this).val() !== 'smtp';`