Instruction: Extract information from the supporting document to answer the given question.

Input:
Question: does this plug directly into the jack or have a cord ?
Document: I'm using it on my 10" tablet. The speakers on the tablet were blown but the headphone jack still works. That's why I purchased this item.This speaker comes with a 3.5mm adapter cord, but I'm using its built in retractable 3.5mm plug.The sound quality of this device is actually better than the tablet's own. They're plenty loud enough and not tinny at all.
Didn't take long before rotating audio plug stopped working. Opened it up and found that 2 of 3 audio wires were broken off. Had to rig an audio cable I had up. Wouldn't buy again.
Sounds fine for a little speaker. Good for pocket use with an mp3 player or a mini tablet. Nothing earthshaking about the technology, but it would be hard to find a smaller stereo speaker that doesn't require a cord.
This unit is impressive for the size, price and portability. Very nice sound when I listen to pod casts at work ect. BUT it has one fatal flaw that will cause it to fail on you. The stereo plug is attached to three little wires.. when you swing out the plug and back in again you bend these wires and they will eventually break.
I finally resoldered the broken wires and hot glued the plug in the open position so ensure that the wires would never encounter stress again. It's a bit annoying to have the plug stick out all the time but I do enjoy this little wonder speaker. So if you get this you should plan on not closing the plug or else you will be sorry.
The tablet I got for Christmas speakers broke and I couldn't get a warranty so I wanted to buy aSmall speaker for sound. It has good sound when on the lowest setting but when you flip to high its absolute crap. Also plug in is to short and falls out so i have to use the audio cable which is just more of an inconvenience. Dissapointed and would not buy again.
I gave this to my mother as part of her birthday gift. Once she opened it and be plugged it in to her iPad, no sound came out. I tried it on my iPod and nothing. I tried it with her Samsung MP3 player and still nothing. We followed the minimal instructions that came with it. Batteries were inserted correctly and the cable was plugged into the headphone jack....total waste of money. Greatly regret that I purchased this.
this is good for what it is. don't expect much and you will be very happy. It's great for hanging off the bag while disc golfing or just going for  a hike. battery life is OK but once the batteries start to die you can really hear the distortion in the speakers. I though it blew it after about 6 hours of using it but turns out the batteries where just drained too much.
mediocre sound, batteries wear out fast. Does what it says, though, it's slightly better sound than my 3gs phone. extra word here.
it's a decent little set of speakers. it is not very loud though, but as cheap as it is you get what you pay for.
Answer: Both.  There is a plug that swivels out from the body of the speaker and that can be plugged directly in to your device's headphone jack.  There is also a cord supplied with the speaker.  It has a jack on one end and a plug on the other.  So you insert the swivel plug that is on the speaker into the jack end of the cord and then plug the other end of the cord into the headphone jack of your device.  The sound is not that great.  I got this because my smartphone is getting old and occasionally it loses sound.  Then I plug this thing into the phone and I can still hear my phone ring.