View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
07467 | Feature requests | Conditions | public | 2011-02-02 02:22 | 2021-11-15 09:04 |
Reporter | Assigned To | galads | |||
Priority | normal | Severity | feature | ||
Status | closed | Resolution | fixed | ||
Summary | 07467: Suppliment to #answernnXnnXnnn method of targetting form elements | ||||
Description | Use of the #answerNNXNNXNN id means code must be updated for all questions that are re-used, in order to re-target form elements. This is tedious, error prone, and frustrating. The solution proposed does not suggest removing the #id, but adding an alternative for scripting targetting. | ||||
Additional Information | A possible solution: Use extra user-definable class attributes for jQuery targetting One way would be to provide, as one of the question attributes, an extra field for use by script. The value entered would be rendered as an extra element attribute ie: class="myElement" It is now easy to reuse code and questions: $(".myElement").focus(/ some code/); | ||||
Tags | No tags attached. | ||||
Bug heat | 2 | ||||
Story point estimate | |||||
Users affected % | |||||