I second the hair spray.
My use has shown that good 'ol "heavy duty" Aqua Net or similar,
from an ozone depleting spray can works best.
Spray on liberally, rub in (not too hard)
then wash in cold water with detergent.
You probably already know this but do NOT
put them in the dryer until the stain is gone to your satisfaction.
If you've already dried them, well.... Might work, might not.