# Calling action on OnClick event of a div

**URL:** <https://www.ruby-forum.com/t/calling-action-on-onclick-event-of-a-div/149501>\
**Category:** Rails\
**Created:** [September 25, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/calling-action-on-onclick-event-of-a-div/149501 "2008-09-25T14:25:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaikishan\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ad7895/32.png) [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Post date:** [September 25, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/calling-action-on-onclick-event-of-a-div/149501/1 "2008-09-25T14:25:10Z")

</div>

I was wondering how can I call an action of a particular controller when  
a  
person clicks on a particular div. Any related pointers?

–  
Thanks,  
Jaikishan
