Results 1 to 2 of 2

Thread: refering radio buttons from javascript

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    refering radio buttons from javascript

    Dear all
    i have the folowing Html code
    <td align="right" valign="top">
    <font class="medium_font">
    AAA
    </font>

    <input class="medium_font" type="radio" name="abc" value="def" tabindex="32">
    <br>

    <font class="medium_font">
    BBB
    </font>

    <input class="medium_font" type="radio" name="abc" value="ghi">
    </td>

    i want to write Script in java to access this radio type and enable one of them as true as an if condition is true
    How do i do that???


    thanks alot

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Give the radio an unique ID (id="MyId") and refer to it from javascript by using the
    GetElementById("MyId") function.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

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



Click Here to Expand Forum to Full Width