Will go to court if teachers put on election duty: Schools’ association