Code JavaScript:
pDOB2.innerHTML = '<?=XDOBDay(' + xCount + ');?> <?=XDOBMonth(' + xCount + ');?> <?=XDOBYear(' + xCount + ');?>';

pDOB2 is then appended as a child to another element.

The problem is, at the moment instead of parsing xCount, a variable which is an auto-incrementing number, it is just displaying + xCount +, which, of course, is expected. However, I don't know how to parse xCount in that innerHTML call.

(I tried searching the web for this kind of stuff but came to no particular solution).