1000kisoen
IS-IT--Management
hi there have some problem with this script please help me out
<html>
<head>
<title></title>
<meta name="author" >
<script language="javascript">
function displ()
{
//if the forms element is 0 (the first one) then return false; do nothing.
if(document.myFORM.valu.options[0].value == true) {
return false
}
else
{
//otherwise, place the appropriate <option value> in the texfield from the drop-down menu.
document.myFORM.textfield.value=document.myFORM.valu.options[document.myFORM.valu.selectedIndex].value;
}
return true;
}
function CallDate(selectedValue)
{
if (selectedindex = >90 )
{
var currDate = new Date();
var currMonth = currDate.getMonth()+1;
document.myFORM.textfield.value = currDate.getDate()+"-"+currMonth+"-"+currDate.getYear();
}
else
document.myFORM.textfield.value = "";
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table border="0" cellspacing="0" cellpadding="0" width="25%">
<tr>
<td width="100%">
<form name="myFORM" >
<select name="valu" size="1" onchange="CallDate(this.value)">
<option value="Choose">Choose One</option>
<option value="10">open</option>
<option value="90">closed</option>
<option value="20">On hold</option>
</select>
<input type="text" name="textfield" readonly>
</form>
</td>
</tr>
</table>
</body>
</html>
can anyone assist me
kisoen
<html>
<head>
<title></title>
<meta name="author" >
<script language="javascript">
function displ()
{
//if the forms element is 0 (the first one) then return false; do nothing.
if(document.myFORM.valu.options[0].value == true) {
return false
}
else
{
//otherwise, place the appropriate <option value> in the texfield from the drop-down menu.
document.myFORM.textfield.value=document.myFORM.valu.options[document.myFORM.valu.selectedIndex].value;
}
return true;
}
function CallDate(selectedValue)
{
if (selectedindex = >90 )
{
var currDate = new Date();
var currMonth = currDate.getMonth()+1;
document.myFORM.textfield.value = currDate.getDate()+"-"+currMonth+"-"+currDate.getYear();
}
else
document.myFORM.textfield.value = "";
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table border="0" cellspacing="0" cellpadding="0" width="25%">
<tr>
<td width="100%">
<form name="myFORM" >
<select name="valu" size="1" onchange="CallDate(this.value)">
<option value="Choose">Choose One</option>
<option value="10">open</option>
<option value="90">closed</option>
<option value="20">On hold</option>
</select>
<input type="text" name="textfield" readonly>
</form>
</td>
</tr>
</table>
</body>
</html>
can anyone assist me
kisoen