Evie
10-31-2003, 07:54 AM
I hope this isn't already here somewhere!
I am needing to find out what the index is of a checkbox so if there is a certain permission flipped, it unchecks it.
(Actually, if you can tell me how to uncheck it, that would be fab!)
Here's the object:
<input type="checkbox" name="chkAddToOrder" value="6546" alt="Microtec_Assmblr(80386+CPU)x86_PC_WINNT_NL" onclick="if(this.checked){JPMMProd(this.alt, this.index);}">
All the checkboxes on the form are 'chkAddToOrder' (I need them to be an array)
Here is the script:
function JPMMProd(engname, chkindex){
var orderid=document.NucList.orderid.value;
alert('Be sure to get PMM Approval for this product befor submitting to your Sales Manager');
document.NucList.chkAddToOrder[chkindex].click();
url="EmailFromSelectNucProds?orderid="+orderid+"&engname="+engname;
alert(url);
//window.hiddenWindow.location.href=url;
}
TIA
-Evie
I am needing to find out what the index is of a checkbox so if there is a certain permission flipped, it unchecks it.
(Actually, if you can tell me how to uncheck it, that would be fab!)
Here's the object:
<input type="checkbox" name="chkAddToOrder" value="6546" alt="Microtec_Assmblr(80386+CPU)x86_PC_WINNT_NL" onclick="if(this.checked){JPMMProd(this.alt, this.index);}">
All the checkboxes on the form are 'chkAddToOrder' (I need them to be an array)
Here is the script:
function JPMMProd(engname, chkindex){
var orderid=document.NucList.orderid.value;
alert('Be sure to get PMM Approval for this product befor submitting to your Sales Manager');
document.NucList.chkAddToOrder[chkindex].click();
url="EmailFromSelectNucProds?orderid="+orderid+"&engname="+engname;
alert(url);
//window.hiddenWindow.location.href=url;
}
TIA
-Evie