Question: How to add images to JQuery autocomplete which also fills hidden data inputs?

Answer: 
I would suggest checking out [Sameer's answer to this for Swift 2.0, just a few months back.](https://stackoverflow.com/a/33228074/4851799) Works perfectly with Swift 2.0.

```
let sess = AVAudioSession.sharedInstance()
if sess.otherAudioPlaying {
    _ = try? sess.setCategory(AVAudioSessionCategoryAmbient, withOptions: []) //
    _ = try? sess.setActive(true, withOptions: [])
}

```
Since the default is AVAudioSessionCategorySoloAmbient, you need to set the proper category for your app and activate it. You could use AVAudioSessionCategoryAmbient for mixing audio.

Add this in your AppDelegate.swift:

```
func applicationDidBecomeActive(application: UIApplication) {
  AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryAmbient, error: nil)
  AVAudioSession.sharedInstance().setActive(true, error: nil)
  // ...
}

```

Enjoy!