Add click event on div tag using JavaScript

Viewed 211161

I have a div tag in my form without id property. I need to set an on-click event on this div tag.

My HTML code:

<div class="drill_cursor" >
....
</div>

I don't want to add an id property to my div tag.

How can I add an on-click event on this tag using JavaScript?

6 Answers
Related