I'm composing a theme options page for my WP theme. And I bumped into the problem of finding the proper way to introduce inline jQuery interactions to the page.
Ideally for me in the situation will be inline jQ code
But this code fails because I guess the admin options page is rendered before the jQuery is included so js generates expected error. The same code with no jQ identifiers works ok means I get alert window when introduce:
Question is how to properly introduce inline js containing jQ (or any other framework) syntax and make it work?