Every person who attempts to commit an offense, but fails to commit or is prevented from committing it, shall be subject to the penalty provided in § 130.99 if the offense is punishable by confinement in jail.
(W.Va. Code § 61-11-8) (1986 Code, § 501.06)