hi all, this is my first subscribtion on this site hope u help me.
i have a
jsp page that i use to add ,delete, and update student record ! when i call this page i send the command in a request and check if its add or delete or update , the problem is if the command is add the id field must be disabled else it must be enabled !! i did this but it does not work :
<%
String command = request.getParameter("command");
if(command.equals("add")){
<script>
setDisabled();
</script>
}
%>
<script>
function setDisables(){
document.main.id.disabled=false;
}
</script>
[ May 11, 2005: Message edited by: Bear Bibeault ]