Hi Trish, first scrape off as much of the chocolate as you can using the edge of a spoon or such. Here's some further instructions.... https://www.mollymaid.com/practically-spotless/2017/june/how-to-remove-chocolate-stains/
Trish....I would try spray and wash...usually works for me.
I remove as much as I can, then apply Dawn dish detergent. Let it sit for a few hours, then blot off what you can and rinse it. Then spot treat it again and wash.
This is similar to what I do, Cynthia H. I squirt a small amount of Dawn on the stain, gently rub it then wait 30 min- 1 hour and wash with our other clothes. This simple routine has made sneakers look brand new,too.