Croatian Railways (HŽPP) operates a train from Zagreb to Jesenice 4 times a day. Tickets cost $16 - $24 and the journey takes 3 h 24 min. Alternatively, you can take a bus from Zagreb to Jesenice via Ljubljana and Lesce Bled in around 4 h 54 min.
From Zagreb Glavni Kolod. train to Jesenice(SL). 3 h 24 min 121 kn. From Zagreb bus to Ljubljana, bus to Lesce Bled, then train to Jesenice(SL). 4 h 54 min 169 kn. From Zagreb Glavni kolodvor nighttrain to Jesenice(SL). 3 h 24 min 143 kn. From Zagreb night bus to Ljubljana then train to Jesenice. 4 h 23 min 137 kn. From Zagreb drive to Jesenice. 2 h 3 min 187 kn.