Hi
i have created a function which attempts to cycle through an array until a certain condition is met. the array contains a list of ids which corrospond to checboxes on my form. i want an action to happen when one of those checkboxes is checked.
here is my code so far:
[COLOR=”Blue”]function listFaults() {
listHtml = “”;
var faultsArray = Array();
faultsArray = {FAULTS_ARRAY};
//think need some sort of loop here???
if(document.getElementById(“Repaired”+insert id value+).checked == true) {
listString = “checked”;
listHtml += “<li>”;
listHtml += “some text to say which box is checked”;
listHtml += “</li>”;
}
return listHtml;
} [/COLOR]
thanks alot
Paul