It is not advisable to use hairspray as a means of sealing glitter onto wooden projects. This can work for a short while since hairspray is not a permanent solution. This is because the wood can turn yellow in the long run. Seal your glitter with a thin layer of mod podge or buy a sealant spray from Krylon.