Richard Young Richard Young - 1 year ago 87
jQuery Question

Add pre-written function to onclick of division

I have a division and I want a JavaScript function to fire when I click on the division. I've found ways of doing it, but they all involve writing the function and I just want to just fire to function and can't seem to get it to work. Can anyone help me?

<script type="text/javascript">

Answer Source

Try with


you need to pass a function in argument (not to call the function directly unless view_summary return a function itself)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download