Two questions:
[B]Question 1:
I currently have a drop down menu called “detail”. The script below is a simple script I use to make sure the user does not leave it blank. Directly below the script, I am including the select box. However, I need to prevent a user from selecting one of the values “Billing” between 12am and 9am. Please how can I disable just “billing” between these hours. All the other options can be selected at any time.
<script >
function checkDETAIL()
{
with(form) {
if (DETAIL.value == ”)
{
alert(“Please select a detail.”);
return false;
} else {
return true;
}
}
}
</script>
<select name=”DETAIL”>
<option>–Select One–</option>
<option value=”Billing”>Billing</option>
<option value=”Email”>Email</option>
<option value=”Browsing”>Browsing</option>
<option value=”Web Setup”>Web Setup</option>
</select>
[B]Question 2:
I have a textarea which is called “comments”, my script below prevents the user from leaving the textarea blank. Now I need to prevent the user from entering a credit card number inside the text area. I am completely clueless about this. My limit is the script I have right now and I am asking for any help.
Thanks to everyone.
<script>
function checkCOMMENTS()
{
with(form) {
if (COMMENTS.value == ”)
{
alert(“Please type in a description of the problem.”);
return false;
} else {
return true;
}
}
}
</script>