The Wig is an item used in the Prince Ali Rescue quest. Ned creates it if three balls of wool are given to him. A Yellow dye can be used on a grey wig to turn it blonde.
The wig is one of the necessary items to disguise Prince Ali as Lady Keli, part of the rescue operation.