How to show and hide textbox fields based on radio button selection as Yes

A textbox will display when a radio button is selected "Yes" and if all radio button is selected as "No" then alert message will appear on the screen.