(1) So much as the court orders of the money or other things due to any person or public officer, state or county, whether the head of a family residing in this state or not, when the money or other thing is due for the personal labor or service of the person or otherwise, is subject to attachment or garnishment to enforce and satisfy the orders and judgments of the court of this state for alimony, suit money, or child support, or other orders in proceedings for dissolution, alimony, or child support; when the money or other thing sought to be attached or garnisheed is the salary of a public officer, state or county, the writ of attachment or garnishment shall be served on the public officer whose duty it is to pay the salary, who shall obey the writ as provided by law in other cases. It is the duty of the officer to notify the public officer whose duty it is to audit or issue a warrant for the salary sought to be attached immediately upon service of the writ. A warrant for as much of the salary as is ordered held under the writ shall not issue except pursuant to court order unless the writ is dissolved. No more of the salary shall be retained by virtue of the writ than is provided for in the order.
(2) The provisions of chapter 77 or any other provision of law to the contrary notwithstanding, the court may issue a continuing writ of garnishment to an employer to enforce the order of the court for periodic payment of alimony or child support or both. The writ may provide that the salary of any person having a duty of support pursuant to such order be garnisheed on a periodic and continuing basis for so long as the court may determine or until otherwise ordered by the court or a court of competent jurisdiction in a further proceeding. Any disciplinary action against the employee by an employer to whom a writ is issued pursuant to this section solely because such writ is in effect constitutes a contempt of court, and the court may enter such order as it deems just and proper.