If you are ordered as part of your sentence to attend a domestic violence class or seminar, I advise asking your probation officer or the prosecutor's office what they may be willing to accept, because while the various judicial circuits and courts in this state are permitted to decide what types of classes or seminars, generally speaking, may satisfy certain legal requirements in civil or criminal cases, not all circuits and courts accept the same ones.
The requirement for whether you can take an online class or are required to take a class in person may also depend if you have a civil domestic violence case or a criminal case. Either way, you should have been provided a contact person (either a probation office or court administrator) to whom you should direct this question. Be warned, if you do not seek approval of the class it may not count, and worse, you could be found in contempt of the court's order to begin classes by a certain deadline that may result in jail time or fines.
This answer is for general purposes only and does not establish legal advice or an attorney-client relationship.