I have a page with multiple forms, these forms MUST have the same name.
I wish to validate some of the fields, only in the form which is submitted.
here is some example code
<html>
<head>
<title></title>
<script language='javascript'>
function checklength()
{
if...
firstly, the if statement should not be using a capital I
secondly the alert statements need semicolons after them
thirdly you will need a return statement after alerrt("yes")
or it will display both messages when the box is checked.
try this code:
function passvalues()
{...
you should use the "value" parameter for your option list
your script should read:
If document.form1.cboEngSerNo.value = "" then
Msgbox("You have not selected an Engine!")
ElseIf document.form1.cboTrnSerNo.value = "" Then
MsgBox("You have not...
There are 3 errors in this code
1) you have closed the HEAD tag twice
2) you have a comma in your option value for TNBLbunch.jpg
3) line 7 should refer to the name of your image i.e "preview" not CoffeePreview
line 7 should therefore read:
document.preview.src = "" +...
This input field is not part of a form, but needs only to be changed by people with authority (or password)
<input name="IS_ATTR_PhoneNumber" size="15" tabIndex="3" maxLength="15" disabled>
cheers
I have a HTML form with a disabled text field.
I do not want just anybody to be able to change this text field.
However it would be helpful if certain selected users, by password or otherwise, could change the contents of this text form field.
Is this possible?
Any suggestions?
Am I...
I need to write a bit of validation that will accept UK postoceds entered into a text field.
i need to accept (including a space) only the 4 cases below and display an alertbox if there isn't a match to the mask.
if x = char
and 0 = digit
the four cases are
x0 0xx
x00 0xx
xx0 0xx
xx00 0xx
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.