Hi,
jQuery functions are usually run at client-side. You can simply embed your code in the Web References tab in the Form Designer.
Web References
Here are some articles on how you can include and execute client-side JavaScript/jQuery scripts.