I have seen solutions for this all over but none of them work. Any
ideas?
I'm trying to add rows to a table so that users can apply more than one
gift certificate to their order, but they don't want to show all tem
rows, they want me to have a link to click and add a new row. So far
it works in all browsers except IE5. I have seen the "append /n" fix
but it doesn't work.
Here's a sample:
var x=document.getElementById('GC').insertRow(-1)
var x2=document.getElementById('GC').insertRow(-1)
var x3=document.getElementById('GC').insertRow(-1)
var a=x2.insertCell(0)
var b=x2.insertCell(1)
var y=x.insertCell(0)
var z=x.insertCell(1)
var c=x3.insertCell(0)
c.colSpan = 2;
y.innerHTML = '';
y.innerHTML="Gift Card/Certificate Number:\n"
z.innerHTML = '';
z.innerHTML="*Pin Number (4 digits):\n"
a.innerHTML = '';
b.innerHTML = '';
c.innerHTML = '';
a.innerHTML="<input type='text' name='gc_nbr_2' size='22'
maxlength='19'>\n"
b.innerHTML="<input type='text' name='gc_pin_2' size='5'
maxlength='4'> <a href='javascript:gcpin_popup()'>what's
this?</a>\n"
c.innerHTML="<div align=center><img
src=/assets/images/checkout/gray_spacer.gif width=300 height=1 border=0
vspace=5></div>\n"
I tried taking the div out as well. HOpe someone can help! TIA!