How to show and hide some fields when change in a Pick List?

How to show and hide some fields when change in a Pick List?

How to show and hide some fields when change in a Pick List in a custom module?