Hello!
I have a form with a set of links and hidden inputs like this:
<div><%=link_to '↓', {}, {:href =>'#',
:onclick => "return moveDown(#{photo.id});"}%></div>
<%= photo_form.hidden_field :position %>
How do I change input value when link is clicked without hard-coding input ids on client side? i dont want to use selectors also. is there any KISS solution?
thanks in advance!