Steve Sol

Greenhorn
+ Follow
since Apr 18, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steve Sol

Hi..
Please could someone help me. I want to be able to make a user fill in both of these selection lists, and if not .. the user would be prompted to, before the form can be sent.
Im only able to validate the first list, unsure on how to add the second list in.
Here is my code.
----------------------------------------------------------------------------------------
<html>
<head>
<title></title>
<script language="JavaScript">
<!--

function checkList(selection) {

if (selection.length == 0) {
window.alert("Make a selection.");
return false;
}

return true;

}


function checkForm(formObj) {
return checkList(formObj.myField.value);
}



// -->
</script>

</head>

<body>

<form name="myForm" action="java.html" onSubmit="return checkForm(this);">

Choose 1
<select name="myField">
<option value=""></option>
<option value="1">1</option>
</select>



Choose 2
<select name="myField2">
<option value=""></option>
<option value="2">1</option>
</select>



<input type="submit">
</form>

</body>
</html>

--------------------------------------------------------------------------------

Thanks
Thanks for your input..
I did end up using a textfield with the value of "<%=now%>" and then sent the results to an access database.
Worked well

Thanks again for your troubles
Hi.. please i need some help

I basically need a textfield to have the date and time incorporated into it in the format of

26/04 22:07

any help would be nice
Thanks
Hi, im wanting to have 2 radio buttons in a form
When either one is clicked a textfield should appear.

So when both are clicked, there should be 2 textfields, and when one or the other is clicked, only one textfield.

I need the textfields not to be disabled, but just to not be there, as i need to validate the field if only one radio button has been clicked

Thanks
Really appreciate the help