Code: Select all
function drawMembers(totalMembers)
{
// Get the number of rows already shown for the hhmembers
var shown = document.getElementById('membersTable').rows.length;
for (i = shown; i <= totalMembers; i++) {
var tbl = document.getElementById('membersTable').insertRow(shown);
var cell1 = tbl.insertCell(0);
cell1.className = 'form-display';
cell1.innerHTML = '<input type="text" name="hhmembersї]їlast]" size="13" value="" onFocus="window.status=''Enter the Household Members Last Name'';style.backgroundColor=''#E9F8E2'';" onBlur="style.backgroundColor=''#ffffff'';window.status='''';" />';
}
}Code: Select all
onBlur="drawMembers(parent.document.intake.hhnum.value);"PS This is my first big jump into using Javascript on my web apps so don't assume I know what I'm doing.
Thanks