Is it possible that you are not adding the jQuery() within an 'init'
or 'admin_init'
; my guess is ‘yes’. Further, if you use an 'admin_init'
hook you won’t need to call is_admin()
.
Better yet, here’s an answer about best practices when using jQuery within WordPress: