Professional Web Applications Themes

Programatically select a radio button? - Macromedia Dreamweaver

Folks: How do I do this? I want to click in a form field and have that click/focus automatically select the corresponding radio button. Would onClick or onFocus be better to use (I am leaning towards onFocus)? -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver MX (If you *MUST* email me, don't LAUGH when you do so!) ================== news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET ANSWERS ================== http://www.dreamweavermx-templates.com - Template Triage! http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes ==================...

  1. #1

    Default Programatically select a radio button?

    Folks:

    How do I do this? I want to click in a form field and have that click/focus
    automatically select the corresponding radio button. Would onClick or
    onFocus be better to use (I am leaning towards onFocus)?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
    ANSWERS
    ==================
    http://www.dreamweavermx-templates.com - Template Triage!
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================


    Murray Guest

  2. #2

    Default Re: Programatically select a radio button?

    You could have something like

    <input type="text" onfocus="this.form.rad[0].checked=true">
    <input type="radio" name="rad">
    <input type="text" onfocus="this.form.rad[1].checked=true">
    <input type="radio" name="rad">


    --
    Jules
    http://www.charon.co.uk
    -----
    Charon Cart 3
    http://www.charon.co.uk/charoncart



    Murray *TMM* wrote: 


    Julian Guest

  3. #3

    Default Re: Programatically select a radio button?

    Jules:

    That's the ticket! It works like a charm!

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
    ANSWERS
    ==================
    http://www.dreamweavermx-templates.com - Template Triage!
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "Julian Roberts" <co.uk> wrote in message
    news:bh0ibc$g3m$macromedia.com... 
    >
    >[/ref]


    Murray Guest

  4. #4

    Default Re: Programatically select a radio button?

    Mick:

    Short. Nice. Thanks.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
    ANSWERS
    ==================
    http://www.dreamweavermx-templates.com - Template Triage!
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "mick_white" <com> wrote in message
    news:com... [/ref]
    >[/ref]


    Murray Guest

Similar Threads

  1. radio button
    By torm in forum Coldfusion - Getting Started
    Replies: 13
    Last Post: April 10th, 01:14 PM
  2. How do I programatically select....
    By Sven (flex noob) in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: March 7th, 06:22 PM
  3. Select All radio buttons
    By Ken Mosley in forum Coldfusion - Advanced Techniques
    Replies: 1
    Last Post: February 16th, 09:40 PM
  4. how to add single select radio button in datagrid... URGENT
    By Sriram in forum ASP.NET Data Grid Control
    Replies: 3
    Last Post: June 9th, 03:41 PM
  5. JavaScript - click on image, select radio button
    By David in forum Macromedia Dreamweaver
    Replies: 8
    Last Post: August 4th, 01:51 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139