Steve Sol

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

Recent posts by Steve Sol

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.
<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);

// -->



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

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

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

<input type="submit">



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
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

Really appreciate the help