Adicione o OnClick JavaScript dinamicamente
elem.addEventListener("click", func, false); //where func is your function name
Weary Wren
elem.addEventListener("click", func, false); //where func is your function name
elem.addEventListener("click", func, false); //where func is your function name