Javascript and radio button

Results 1 to 2 of 2

Thread: Javascript and radio button

  1. #1
    Join Date
    Dec 1969

    Default Javascript and radio button

    I have two radio button on my page. One of the radio button is "CHECKED"<BR><BR>Member&#060;INPUT type="radio" id=Member name=Member&#062;<BR>Non-Member&#060;INPUT type="radio" id=Member name=Member CHECKED&#062;<BR><BR>I need to make a javascript function in my page that tels me wich one was clicked?<BR><BR>How can I do this?

  2. #2
    Join Date
    Dec 1969

    Default RE: Javascript and radio button

    if (document.form_name.Member.checked==true)<BR> {.....member code...<BR> }<BR>else<BR> {...non_member code<BR> }<BR><BR>assuming that the butons are in a form.<BR><BR><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