6
I have a UL with some items. For example
<ul class='ordemQuestoes'>
<li idquestao="28" >Questao 28</li>
<li idquestao="2" >Questao 2</li>
<li idquestao="17" >Questao 17</li>
</ul>
When I save a question I need to record in the bank the order that is among the 3. And this number may vary.
At the time of saving I have in hand the idquestao, then as I do to through the idquestao 17 for example I manage to return 3, third position?
I have not yet been able to think of a logic to achieve this result.
Great, I just had to add + 1 to the result!
– Joao Paulo