Some of the text was cut because of the '<' in the for loop...
//For each option value in the array
for (i=0; i<indoptions.length;i++)
{
//Create an option and give it its
info, then append it to the td.
var optioni =
document.createElement("option");
optioni.name = "selectbox";
optioni.innerHTML =
indoptions[i];
optioni.value = indoptions[i];
this.appendChild(optioni);
}
})
}
else
{
//It's not supposed to be a select box. Create a
textbox
//Doesn't work... Work in progress! ;)
$(this).append(document.createElement("textarea"));
$(this).innerHTML =
this.parentNode.previousSibling.firstChild.nodeValue;
}
}
--
View this message in context:
http://www.nabble.com/Determine-which-table-column-was-clicked-tf2064756.html#a5705296
Sent from the JQuery forum at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/