You are entering a big conundrum. To play both styles of music takes alot of listening as well as jamming with others. Jazz is an odd animal as you can learn to read the head (melody line) but for me it has taken a milestone to remember it without reading. I have had to listen to the point that it stuck in my head. I am in heavy easy listening stage (Sinatra, Nat King Cole, etc.) to become more familiar with the vocal standards. Many of which are played instrumentally in jazz. Some examples are: All The Things You Are, Night And Day, Someday My Prince Will Come.
If your intersest lies into learning jazz, start with the Jamey Abersold Series - Book 1. This will help you get a foundation of the music. For learning chords on the guitar, the Baker book is good place to start. Bottom line is that you will need to learn the basics to chords forms, arpeggios from hell and comping. Forgot to add Real Book for song standards.
Gotta ask what type of jazz are you interested in playing?