Are you talking about putting this code into the custom sidebar, via the Admin panel in the demo.question2answer.org site? If so the problem will be because that site removes any Javascript in the content pasted, for security. This won't happen in your own installation of Q2A.