The same general way that you would with non-JSF, except that in order to avoid confusion with the EL processor, you can't use the "$" convention. You have to use "jQuery." as the introducing term on a jQuery expression.
If you're using RichFaces, there's a (old) version of jQuery that come automatically with RichFaces, which uses it internally. In that case, you don't even have to explicitly request jQuery, since RichFaces does it in the background.
An IDE is no substitute for an Intelligent Developer.