For a rebuild of the poll-module I need to know the variable names of the different answers ('_answer_' == "1") for instance to refer to the first answer?
Thanks for help
For a rebuild of the poll-module I need to know the variable names of the different answers ('_answer_' == "1") for instance to refer to the first answer? Thanks for help |
Hello DR_U!
Every poll has the unique id looks like dpol_current_vote_[autoincremented_ID] and every input name like vote_[same ID]. So based on this info you may extract the first variant for example with the JQuery ools like: $("#dpol_current_vote_[autoincremented_ID] input[name='vote_[same ID]']").first(); |