mookie0001
Technical User
This function is failing to submit the form after the confirmation is accepted. If anyone can point me in the right direction I would greatly appreciate it.
Here is the called JavaScript function:
function confirmEquipAdd() {
var cnfrm = confirm("Are you sure you wish to associate this equipment with selected user?", 4, 3);
if(cnfrm == true) {
document.PCForm.submit();
}
}
Here is the form is in:
<form method="post" action="../Inventory_Admin/DBUpdate.asp" id=PCForm name=PCForm>
Here is the first part of the select box calling the function:
<select name="login" id="login" onchange="confirmEquipAdd();">
Here is the called JavaScript function:
function confirmEquipAdd() {
var cnfrm = confirm("Are you sure you wish to associate this equipment with selected user?", 4, 3);
if(cnfrm == true) {
document.PCForm.submit();
}
}
Here is the form is in:
<form method="post" action="../Inventory_Admin/DBUpdate.asp" id=PCForm name=PCForm>
Here is the first part of the select box calling the function:
<select name="login" id="login" onchange="confirmEquipAdd();">