<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1038021" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1038021</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/make-text-box-avaialble-only-if-radio-button-selected#comment-1217394</link>
    <description> &lt;p&gt;The only way I&#039;ve personally found to do it is Javascript.&lt;/p&gt;
&lt;p&gt;So that it&#039;s still accessible without JavaScript, start with the field enabled, which is the default. In pageload, check to see if the Other option is selected, then set the textbox to disabled if it isn&#039;t. Then, for each option in that question, put an onclick call to a javascript function. In that function, determine which is selected, and take the appropriate action.&lt;/p&gt;
&lt;p&gt;I always delete the current contents of the textbox if the answer changes away from Other, too. That helps avoid any confusion on the user&#039;s part.&lt;/p&gt;
 </description>
     <pubDate>Wed, 04 Apr 2007 15:34:23 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1217394 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
