Brian Graham gave Ian McCall's men the lead after 33 minutes but Alan Forrest equalised for Mark Kerr’s team from the penalty spot early in the second half.
The result means Thistle remain bottom of the Ladbrokes Championship while Ayr move level on points with second-placed Inverness CT.