jQuery is open sourced under the MIT license, and their page here reads
The MIT License is simple and easy to understand and it places almost no restrictions on what you can do with a jQuery project.
Also, it is impossible to hide client-side Javascript from the user, as they can see whatever they want. However, you can attempt to obfuscate or uglify it to dissuade users from stealing it