how to hide one field when another is selected?

How can i get selected value in user update form, please give me answer for this also if possible