So, in one word, NO, white JBL headphones do not get dirty, as long as you play your part in maintaining proper hygiene when necessary.
Do white earbuds get dirty easily?
However, yes they do show dirt and such. I do want to point out that even if you get the black ones that dirt and build up will still be there. You just won't see it as well as you would on the white ones. They should still be cleaned regularly.
Do Bose white headphones get dirty?
These headphones are resistant to stains, however the headband may require occasional spot cleaning. We would recommend that if you want to wash this, to wash with a soft cloth dampened in a mixture of dish detergent and water. ... Any stains that are these products wipe off easily, on all colour variants of this product.