This discussion is archived
5 Replies Latest reply: May 2, 2012 2:59 PM by 913014 RSS

Javascript expression help in Set Value Dynamic Action

mskamene Newbie
Currently Being Moderated
Hi all,

I have what I hope is an easy question to answer.

I am trying to set the value of an item on my page, via a Dynamic Action, to the ID of the triggering element.

For example, I may have several links on my page as follow:

Link 1
Link 2
Link 3

My Dynamic Action is linked to JQuery selector a.agree, but I need to know which of my links fired it so that I can set a value on my page.

I am using the 'Set Value' Dynamic Action, with Set Type: 'Javascript Expression'. I just don't know what to put in the Expression field.

Many thanks for any help you can provide!



  • Correct Answers - 10 points
  • Helpful Answers - 5 points