A client has asked me to add numbers to their FAQ which uses JQuery Accordion. I don’t want to do this manually in case I have to renumber the entries, and using an <ol> breaks the accordion. So I tried this
var ctr:int = 0;
$('a.numbered').each(function(){$(this).innerHTML = String(ctr)+". "+$(this).innerHTML; ctr++})
and the Accordion still works, but I don’t get any numbers.
Help a JQuery noob?