If any of the animals mentioned in this act break free of their lawful enclosure, and trespass on land owned by another person, the owner or occupant of the land may take into possession such animal trespassing, and keep the same until damages, with reasonable charges for feeding and keeping, and all costs of suit, be paid, to be recovered in any court of competent jurisdiction.
K.S.A. 29-408