Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > check if a checkbox has been selected?
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 17th March 15:21
stepan mozyra
External User
 
Posts: 1
Default check if a checkbox has been selected?



Hello, Rudi!


RA> Let's say the form is <FORM NAME="preview" ACTION="preview.asp"
RA> METHOD="post>
RA> <INPUT TYPE="checkbox" NAME="suppliertick" VALUE="checkbox">Check if
RA> the
RA> Supplier is Correct <INPUT TYPE="submit" VALUE="ACCEPT">
RA> </FORM>

1) Modify <FORM NAME="preview" ACTION="preview.asp" METHOD="post"
OnSubmit="javascript:return(ValidateForm());">
2) Add something like
<script language="javascript">
function ValidateForm() {
if (do***ent.preview.suppliertick.checked)
return(true);
else return(false); }
</script>

// WBR, Mozyra Stepan
// SM17-UANIC
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666