Guys,
I need your help,please...
I have problem with javascript inner.html...
here is the code:
function ExpandTable()
{
s="<table border=0><tr>";
//s+="<td bgcolor='#ffeeee' colspan="+(splitnum)+"><td colspan="
//s+=splitnum+"></td></tr>";
for (i=0;i<splitnum;i++){
n++;
ya++;
cn++;
pl++;
sl++;
jd++;
//s+="<tr><td width='254' class='tdHeadA'>Company Name"+n
s+="<tr><td width='191' class='tdHeadA'>Year:</td><td width='191'>"
s+="<input type='text' name='yearAttend"+ya+"' />"
s+="<tr><td width='191' class='tdHeadA'>Company Name:</td><td
width='191'>"
//s+=":</td><td width='279'>"
s+="<input type='text' name='compName"+cn+"' />"
//s+="<input type='text' name='compName' />"
//s+="</td></tr><tr><td class='tdHeadA'>Position Level"+n
s+="</td></tr><tr><td class='tdHeadA'>Position Level:</td><td>"
//s+=":</td><td>"
//s+="<input type='text' name='positionLvl' />"
s+="<input type='text' name='positionLvl"+pl+"' />"
s+="</td></tr><tr><td class='tdHeadA'>Salary:</td><td>"
s+="<input type='text' name='salary"43;sl+"' />"
s+="</td></tr><tr><td class='tdHeadA'>Description of Job:</td><td>"
s+="<textarea name='jobdesc"+jd+"' cols='60' rows='5'></textarea>"
s+="</td></tr>";
}
alert("jobdesc"+jd);
s+="</tr></table>";
document.getElementById("q").innerHTML=s;
}
the above function will be executed when user click the following button..
<input type="button" value="Add More Experience"
onClick="splitnum43;+;ExpandTable();">
my question is:
how to insert all values into the database since the the value "jd" variable
keep increasing when the user click the button...
if the user click the button 3times, then the value of "jd" is 6...
I cannot insert the value of textbox whose jd value is 1,2,3,4,5....
In the database only jd0 and jd6....
Help me,please!!
[Non-text portions of this message have been removed]
.