I write simple javascript&HTML events:
<button class="btn btn-danger pull-right" onclick="removetopic(this)">del</button>
and javascript:
function removetopic(ele) {
alert("ddd");
return 0;
}
you can see the code here
but in my firefox 29.0.1(firebug) run it. It always give me error from console:
ReferenceError: removetopic is not defined
I think I define the same name with trigger event onclick why the function is not defined?