Javascript distingue mayúsculas de minúsculas...
row
Span no row
span
Código HTML:
Ver original<script language="JavaScript"> function function1() {
document.getElementById("myTableHeader").rowSpan += 1;
}
function function2() {
location.reload();
}
<table width="542" border="10" bordercolor="red" cellpadding="20"> <th id="myTableHeader">Cell 1
</th> <input type="button" value="Span(2) Cell 1" onClick="function1();"> <input type="button" value="Restore" onClick="function2();">
Esto hace lo que pides pero, no del todo!!! (he modificado un poco el ejemplo que dan
aqui)
Código HTML:
Ver original<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" type="text/JavaScript"> function frowspan(direccion){
if(direccion=="0"){
document.getElementById("celdalarga").rowSpan+=1;
}else{
document.getElementById("celdalarga").rowSpan-=1;
}
}
<table width="100%" border="1" cellspacing="0" cellpadding="0"> <td rowspan="5" id="celdalarga"> </td> <td><input type="button" name="BotEli" value="Eliminar esta"></td> <td><input type="button" name="Submit2" value="Eliminar esta"></td> <td><input type="button" name="Submit3" value="Agregar una" onclick="frowspan('0')"></td> <td><input type="button" name="veurerowspan" value="Quitar una" onclick="frowspan('1')"></td>
Este es mio
Yo me plantearia muy seriamente la opcion que te ha dado
CHuLoSoY.
Quim