Electrical Questions? Ask an Electrician Online.
This is not compliant with the code any where in the country. The switch has to be no less than 6 feet from the tub or shower.
Just checking in to make sure you understood my reply and to see if you have any questions. Please let me know if you do and I would appreciate the courtesy of a reply thank you very much.