You could do something like:
Code:
...
if(arrId[i] == x){
document.getElementById("itemInfo").innerHTML = arrInfo[i];
document.getElementById("itemAvail").innerHTML = arrAvail[i];
break;
}...
and in your body somewhere:
Code:
<p id="itemInfo"></p>
<p id="itemAvail"></p>
or have that put wherever you want - in a DIV, SPAN, TD, etc...
Oh and I think you have 1 too many "{" in your showRecords function.
Last edited by funkdaddu; 08-07-2006 at 05:32 PM..
|