If your HP printer is one that can connect to you computer by wi-fi as well as by plugging in to your computer it may work. Turn the printer on and enter the wifi network info, if it is not already set up that way. Then follow these instructions from Apple.
Print from your iPhone iPad or iPod touch - Apple Support