I have the following js
which is called from the onClick event on a radio button.
onClick="return reject('<%= rs("EID") %>', 'reject');"
Basically what I am doing is trying to capture a rejection reason from the user if they choose to reject the item.
However, everytime I click the reject radio button to execute the function, it works, then 5 seconds later the page refreshes and the innerHTML is lost.
Any thought?? This is driving me crazy!!
Thanks,
J
Code:
function reject(id, status){
if (status == "reject"){
document.getElementById(id + "Rej").innerHTML = "<BR><input type='text' size='25' name='Reason:<%= rs("EID") %>:<%= ApprovalRole %>'>";
}else{
document.getElementById(id + "Rej").innerHTML = "";
}
return true;
}
which is called from the onClick event on a radio button.
onClick="return reject('<%= rs("EID") %>', 'reject');"
Basically what I am doing is trying to capture a rejection reason from the user if they choose to reject the item.
However, everytime I click the reject radio button to execute the function, it works, then 5 seconds later the page refreshes and the innerHTML is lost.
Any thought?? This is driving me crazy!!
Thanks,
J