How do you make custom fields required before publishing?

Hello,

I was wondering if there was a way to make custom fields required before publishing a post?

My assumption is having to do some sort of jquery validation on the fields.

I would love to hear your opinions and options!

Thanks!