Minecraft wiki entry for Combat, associated text: The player can attack spider jockeys with a bow outside of the mobs' search range. Be sure that the player does not hit the spider until they have killed the skeleton.