How to display a value when a particular radio button is selected? For suppose if we have two radio buttons namely - male & female. When radio button "male" is selected there should be a text displayed saying "Hi, I'm male". and similarly for the other radio button.