Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Dan Sinclair
Dan Sinclair
1,420 Points

Using Jquery to play sound on hover

I want to set up my document in order to play a sound on a hover state.

I have looked a lot online at various resources but can't seem to find a post that shows how to set up html, css, and jquery documents in order to make something simple work.

Can anyone help?

1 Answer

Dan Garrison
Dan Garrison
22,445 Points

I've never tried it myself, but it looks like you could probably use the following to accomplish what you are trying to do.

I couldn't find jQuery method that would allow you to play audio, but you can combine jquery and JavaScript methods since they are both JavaScript. So this should work.