Hi I am wondering if anyone knows how I can get my custom attributes to validate in XHTML Strict? I have to have it validate as it is for a class
Example of the form:
[code=html]input onkeyup=”TF_filterTable(document.getElementById(‘dataTable’), filter)” size=”40″ tf_colkey=”name”tf_searchtype=”substring” />
Example of the JS:
[CODE]var inputs = frm.getElementsByTagName(“INPUT”);
for (var i=0;i<inputs.length;i++)
{ //looping thru all INPUT elements
if (inputs[i].getAttribute(“TF_colKey”) == null) //attribute not found
continue; //we assume that this input field is not for us
switch (inputs[i].type)
{
case “text”:
case “hidden”:
if(inputs[i].value != “”)
{
index = conditions.length;
conditions[index] = new Object;
conditions[index].name = inputs[i].getAttribute(“TF_colKey”);
conditions[index].type = inputs[i].getAttribute(“TF_searchType”);
conditions[index].value = inputs[i].value;
conditions[index].single = true;
}
break