checkbox problem

Results 1 to 2 of 2

Thread: checkbox problem

  1. #1
    dummy Guest

    Default checkbox problem

    &nbsp;<BR>How can i check whether user has selected the "checkbox" below?<BR><BR>&#060;FORM action = page2.asp method=post&#062;<BR>while not rs.eof <BR>&#060;input type="checkbox" name="ID" value=rs.fielf("uid") &#062;<BR>wend<BR><BR>&#060;Input type="submit" name="submit" value="Delete" onclick=validate()&#062;<BR>&#060;/FORM&#062;<BR><BR>what i am trying to do here is, if user has not checked any of the checkbox and click the "Delete" button, it will stay in page1.asp with an alert message in javascript.<BR>but how can i determine whether user has checked by javascript?

  2. #2
    Join Date
    Dec 1969

    Default RE: checkbox problem

    if(document.formname.checkboxname.checked==true)<B R>{<BR>code<BR>}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts