Im trying to use this code to toggle between a play and pause button but it doesn\'t seem to be working. How can I get it toggle between the 2 images when the are clicked >
You can use the .toggle() function. I've updated your fiddle. Also, you hadn't escaped the quotes properly in your image tags.
.toggle()
$("#infoToggler").toggle(function() { $(this).html(''); }, function() { $(this).html(''); });