How to get only radio buttons from getElementsByTagName method?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yajiv.vijay@gmail.com

    How to get only radio buttons from getElementsByTagName method?

    I am just started using getElementsByTa gName. I dont know how to
    filter radio buttons from all other INPUT fields. Is there any way to
    do that without looping through all the INPUT fields?
  • Rauan Maemirov

    #2
    Re: How to get only radio buttons from getElementsByTa gName method?

    If u use Prototype JS, there is

    $(form).getInpu ts('radio', 'radio_name');

    Comment

    • rf

      #3
      Re: How to get only radio buttons from getElementsByTa gName method?


      "Rauan Maemirov" <rauan1987@gmai l.comwrote in message
      news:207887ca-c85a-498b-b135-95b8658e1488@s1 2g2000prg.googl egroups.com...
      If u use Prototype JS, there is
      No. Don't use over 100K of "library" just to avoid looping through all input
      fields and filtering for radio buttons, which is what that "library" does
      anyway.

      And, what is a u?

      --
      Richard.


      Comment

      • Rauan Maemirov

        #4
        Re: How to get only radio buttons from getElementsByTa gName method?

        On Feb 15, 5:54 pm, "rf" <r...@invalid.c omwrote:
        "Rauan Maemirov" <rauan1...@gmai l.comwrote in message
        >
        news:207887ca-c85a-498b-b135-95b8658e1488@s1 2g2000prg.googl egroups.com...
        >
        If u use Prototype JS, there is
        >
        No. Don't use over 100K of "library" just to avoid looping through all input
        fields and filtering for radio buttons, which is what that "library" does
        anyway.
        >
        And, what is a u?
        >
        --
        Richard.
        I mean, u could watch its' code. ;)

        Comment

        • rf

          #5
          Re: How to get only radio buttons from getElementsByTa gName method?


          "Rauan Maemirov" <rauan1987@gmai l.comwrote in message
          news:a36e7879-3630-430f-b6ea-ce53f58a9985@h1 1g2000prf.googl egroups.com...
          On Feb 15, 5:54 pm, "rf" <r...@invalid.c omwrote:
          >"Rauan Maemirov" <rauan1...@gmai l.comwrote in message
          >>
          >news:207887c a-c85a-498b-b135-95b8658e1488@s1 2g2000prg.googl egroups.com...
          >>
          If u use Prototype JS, there is
          >>
          >No. Don't use over 100K of "library" just to avoid looping through all
          >input
          >fields and filtering for radio buttons, which is what that "library" does
          >anyway.
          >>
          >And, what is a u?
          >>
          >--
          >Richard.
          >
          I mean, u could watch its' code. ;)
          Prototype is not a good example of how to do things.

          What is a u? If you mean the word "you" then why not just type it?

          --
          Richard.


          Comment

          • Thomas 'PointedEars' Lahn

            #6
            Re: How to get only radio buttons from getElementsByTa gName method?

            yajiv.vijay@gma il.com wrote:
            I am just started using getElementsByTa gName. I dont know how to
            filter radio buttons from all other INPUT fields. Is there any way
            to do that without looping through all the INPUT fields?
            You may use this XPath expression: //input[@type="radio"]

            A similar question has been asked and answered here before.
            Please search before you post.




            PointedEars

            Comment

            • Dr J R Stockton

              #7
              Re: How to get only radio buttons from getElementsByTa gName method?

              In comp.lang.javas cript message <47B8BDBF.90300 09@PointedEars. de>, Mon,
              18 Feb 2008 00:05:35, Thomas 'PointedEars' Lahn <PointedEars@we b.de>
              posted:
              >yajiv.vijay@gm ail.com wrote:
              >I am just started using getElementsByTa gName. I dont know how to
              >filter radio buttons from all other INPUT fields. Is there any way
              >to do that without looping through all the INPUT fields?
              >
              >You may use this XPath expression: //input[@type="radio"]
              >
              >A similar question has been asked and answered here before.
              >Please search before you post.
              Best to ignore such remarks. BigEars has a Deity Complex, and does not
              know how to act as a human being..

              --
              (c) John Stockton, nr London UK. ???@merlyn.demo n.co.uk Turnpike v6.05 MIME.
              Web <URL:http://www.merlyn.demo n.co.uk/- FAQish topics, acronyms, & links.
              Check boilerplate spelling -- error is a public sign of incompetence.
              Never fully trust an article from a poster who gives no full real name.

              Comment

              Working...