Changed select() to choose() because of conflict with jQuery library. Also used jQuery methods hide() and show() instead of changing the display css attribute.