The code looks fine to me
Provide details on which browser works or not and describe precisely, if you don't want to post a link.
Understand I can't help if I can't reproduce the issue and if you don't provide details on how to reproduce it.
Providing a link is the fastest way to investigate and solve.
- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.