Hide a field based on checkbox
The conditional field module will do this for you. In this module when certain fields are selected, get value, ... other operations (hiding,removing,make it required,...) may happen