What bus line goes from Split to Zagreb?
There's also a direct train but the bus will be a little faster.
You just show up at the bus station and buy a ticket. I don't think this is something you have to plan much in advance. If you're worried about getting a seat at a particular time, then buy a ticket the day before once you're on the ground.