And this is the circuit you need ... I'm sure you'll be able to figure it out
http://www.montage.co.nz/led/images/LED_CircuitPlan.gif Ps: a = anode, k = cathode; check the spec sheet of the IR device to see which is which!
The problem with IR is that you can't see if it works - obviously, normal LEDs are much easier!!