Its connected with a cable, usually comes away at the top behind the handle. Sometimes you can reach up the bottom back of the seat and pull the cable from there.
No idea on fixing it back on I'm afraid, might need a new cable, might not.
In a time of universal deceit - telling the truth is a revolutionary act. George Orwell
When the debate is lost, slander becomes the tool of the loser. Socrates