Show / hide fields in stateless form depending on value chosen in lookup field

Show / hide fields in stateless form depending on value chosen in lookup field

Hi

What code do I use to show or hide selected fields on a stateless form depending on a value that is chosen from a lookup field in the same form?

Thanks