Hey guys,
What is a common way to pass data for formula fields, to specify a quantifier. I would currently do as follows:
<input type="text" name="myfield" class="inputfieldstyle quantified" id="q_12" value="foo" />
where q_12 is generic.
But there some inherent problems with the approach:
- What if i want to give it an id for some js/css reason?
- q_12 is not easy to read with js:
var quant = parseInt(element.id.split('_').pop())
- id is not made for passing values
How should I handle this? Is there a common way? Is there a way suggested by w3c?