Javascript Onclicks not working?

Posted by Georges Oates Larsen on Stack Overflow See other posts from Stack Overflow or by Georges Oates Larsen
Published on 2011-01-09T07:49:52Z Indexed on 2011/01/09 7:53 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

I have a jQuery application which finds a specific div, and edit's its inner HTML. As it does this, it adds several divs with onclicks designed to call a function in my JS.

For some strange reason, clicking on these never works if I have a function defined in my code set to activate. However, it works fine when calling "alert("Testing");".

I am quite bewildered at this as I have in the past been able to make code-generated onclicks work just fine. The only thing new here is jQuery.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery