When radio button 1 is selected print hello 1, when radio button 2 is selected print hello 2. How do I do this?
<form name="form" id="form">
First Class<input name="seat_class" id="a1" type="radio" value="First Class">
Second Class <input name="seat_class" type="radio" value="Standard Class"
</form>
Try this: