In this contribution we present OES measurements in the JET tokamak of the deuterated NH (ND) radical and the correlation between results of those experiments and measurement of ammonia production. The observation region covers most of the divertor and its outer throat. Measurements are performed in different magnetic configurations. The results include temporal and spatial dependence of the molecular emission intensity and study of the emission band shape (vibrational and rotational temperatures) during different JET pulses, with or without nitrogen seeding. Results are a step towards the understanding of nitrogen-containing molecule creation and destruction in the divertor plasma.