[Xsltforms-support] Accessing items withing xf:repeat
Brought to you by:
alain-couthures
From: Tim T. <tim...@gm...> - 2015-03-17 20:01:46
|
Hello, I would like to be able to add some simple styling to the items within an <xf:repeat> element. Specifically, I would like to use jQuery to attach a click listener to each div that has an "xforms-repeat-item" class. When a user clicks on a div within the repeat, for example, a "highlight" class would be added in order to generate a background color for the div. However, I find that within the <xf:repeat> I am only able to modify the first item (which has an "xforms-repeat-item-selected" class). Is there a way to achieve this functionality in XSLTForms? Thank you, Tim |