<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1003194" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1003194</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/forms-select-radio-buttons#comment-1014121</link>
    <description> &lt;p&gt;Hi!  Thanks for your input!&lt;/p&gt;
&lt;p&gt;My problem has now been solved.  I&#039;m going to  post the answer here because the answer will tell you what the question was probably much better than my original post.   &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;  Unfortunately I didn&#039;t figure this out myself but got the answer from another source.   &lt;img src=&quot;http://www.webmaster-forums.com/ubb/frown.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;  One day.  I understand the stuff after I look at it, but I never seem to get there from here on my own.  Sigh...&lt;/p&gt;
&lt;p&gt;Here&#039;s the answer:&lt;/p&gt;
&lt;p&gt;&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;HEAD&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;test&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
&amp;lt;BODY&amp;gt;&lt;br /&gt;
&amp;lt;FORM NAME=&quot;frm1&quot;&amp;gt;&lt;br /&gt;
&amp;lt;INPUT TYPE=&quot;radio&quot; name=&quot;rad1&quot; value=&quot;opt1&quot; onFocus=&quot;this.form.sel1.options[0].selected = true;&quot;&amp;gt;Option 1&lt;br /&gt;
&amp;lt;INPUT TYPE=&quot;radio&quot; name=&quot;rad1&quot; value=&quot;opt2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;select name=&quot;sel1&quot; onChange=&quot;this.form.rad1[1].checked = true;&quot;&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;&quot;&amp;gt;Select from list&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;opt2&quot;&amp;gt;Option 2&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;opt3&quot;&amp;gt;Option 3&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;opt4&quot;&amp;gt;Option 4&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;opt5&quot;&amp;gt;Option 5&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;opt6&quot;&amp;gt;Option 6&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt;&lt;br /&gt;
&amp;lt;/FORM&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;/p&gt;
&lt;p&gt;It cause the drop-down menu in the second radio option to revert back to its original text if you switch to the first radio button (it doesn&#039;t by default).  My approach trying to use onBlur was a little backward I think.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Phyllis&lt;/p&gt;
 </description>
     <pubDate>Thu, 15 Jun 2000 13:20:00 +0000</pubDate>
 <dc:creator>phyllis</dc:creator>
 <guid isPermaLink="false">comment 1014121 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/forms-select-radio-buttons#comment-1014120</link>
    <description> &lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;   Let me get this straight.  You have 2 radio buttons (same name, different values). If I press radio1, I get something. If I press radio2, I get a dropdown with more options. The buttons are defined something like:&lt;br /&gt;
&amp;lt;input type=&#039;radio&#039; name=&#039;myOptions&#039; value=&#039;default option&#039;&amp;gt;Default Option&lt;br /&gt;
&amp;lt;input type=&#039;radio&#039; name=&#039;myOptions&#039; value=&#039;something&#039;&amp;gt;Other options&lt;/p&gt;
&lt;p&gt;Somehow or another clicking on the second button displays the selection list (dHTML? or the list is there, but blurred from the beginning?)&lt;/p&gt;
&lt;p&gt;  You want to be able to jump back and forth between the options, presumably until a submit is sent.&lt;/p&gt;
&lt;p&gt;To change the text in a dropdown (select) menu:&lt;br /&gt;
 document.formname.selectname.options[x].text = &#039;something&#039;;&lt;/p&gt;
&lt;p&gt;To change it back to its original selectedIndex:&lt;/p&gt;
&lt;p&gt;document.formname.selectname.options[x].selectedIndex = 0;&lt;/p&gt;
&lt;p&gt;(I&#039;m presuming the first selection is the default for the menu)&lt;/p&gt;
&lt;p&gt;if you are changing it from a radio button, you could use the onClick event handler to call a function to accomplish the above line.&lt;/p&gt;
&lt;p&gt;Hope this helps.  If not, don&#039;t worry. It made me think.  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
my site:&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;br /&gt;
moderator at:&lt;a href=&quot;http://www.javaplace.co.uk&quot; class=&quot;bb-url&quot;&gt;The Javascript Place&lt;/a&gt;&lt;br /&gt;
&lt;A target=&quot;_blank&quot;&gt;Javascript City&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 15 Jun 2000 00:29:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1014120 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/forms-select-radio-buttons#comment-1014119</link>
    <description> &lt;p&gt;Hi, off the top of my head suggestions:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;document.&lt;/strong&gt;forms[0].radiobutton[1].options[selectedIndex].value=&lt;strong&gt;&#039;&#039;&lt;/strong&gt; (radio buttons can only be checked or null)&lt;/p&gt;
&lt;p&gt;But realistically, radio buttons are on/off and so if someone changes his/her mind, he/she would simply have to choose the other radio button in order to turn &quot;off&quot; the one with the drop-down list.  Simply have the same name for the two radio buttons. (Which is what you should have if the options are either/or anyway...)&lt;/p&gt;
&lt;p&gt;I&#039;m not really clear what you mean about the drop-down list, though.  Perhaps a link would be useful?&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt; Suzanne&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://www.zerocattle.com&quot; class=&quot;bb-url&quot;&gt;Zero Cattle&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.inforamp.net/~suzanne/&quot; class=&quot;bb-url&quot;&gt;Suzanne&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.inforamp.net/~suzanne/index/celtic.html&quot; class=&quot;bb-url&quot;&gt;Tables DeMystified&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jun 2000 22:19:00 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1014119 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
