There are several options for attracting the fruit flies.
Option 1
Place a ripe piece of fruit in the jar and place the fruit fly lid on
Option 2
Fill Jar with at least 1/4 cup of apple cider vinegar and a few drops of dish soap.
Place the lid on top.