I've searched all over the web and can't for the life of me find the answer I'm looking for.

How does J/P really work? Do I get JP for attacking with the class? Like if I was a knight and attacked I would JP for that class? If so then if I use Black Magic while a Knight would the JP go to the black magic class?

Sorry if this sounds dumb. lmao. Thanks for helping me out.