<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1026373" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1026373</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159382</link>
    <description> &lt;p&gt;ya now i can modify the code and use it as per my requirement.&lt;br /&gt;
but i dont think it is a bad style, if i use it in forms too.&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Sep 2004 09:49:33 +0000</pubDate>
 <dc:creator>pramodkhanna</dc:creator>
 <guid isPermaLink="false">comment 1159382 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159320</link>
    <description> &lt;p&gt;Glad I could help. Basically all it does it change the style from visibility: hidden to visibility: visible. You should be able to modify the code above for other form elements easily enough &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 23 Sep 2004 10:41:59 +0000</pubDate>
 <dc:creator>KeithMcL</dc:creator>
 <guid isPermaLink="false">comment 1159320 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159307</link>
    <description> &lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/beer.png&quot; title=&quot;Cheers!&quot; alt=&quot;Cheers!&quot; class=&quot;smiley-content&quot; /&gt; &lt;/p&gt;
&lt;p&gt;thanks a lot, i just wanted this.&lt;br /&gt;
thanks again&lt;/p&gt;
 </description>
     <pubDate>Thu, 23 Sep 2004 06:23:16 +0000</pubDate>
 <dc:creator>pramodkhanna</dc:creator>
 <guid isPermaLink="false">comment 1159307 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159272</link>
    <description> &lt;p&gt;Ah ok, I get you now.&lt;/p&gt;
&lt;p&gt; You still need to use javascript to achieve this effect. You use the onChange event like so:&lt;/p&gt;
&lt;p&gt; &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;amp;lt;script type=&amp;quot;text/javascript&amp;quot; language=&amp;quot;javascript&amp;quot;&amp;amp;gt;&lt;br /&gt;function checkIt(ref) {&lt;br /&gt;	if(ref.options[ref.selectedIndex].text == &amp;quot;creditcard&amp;quot;) {&lt;br /&gt;		document.frmTest.ccnumber.style.visibility = &amp;quot;visible&amp;quot;;&lt;br /&gt;	} else {&lt;br /&gt;		document.frmTest.ccnumber.style.visibility = &amp;quot;hidden&amp;quot;;&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;form name=&amp;quot;frmTest&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;select name=&amp;quot;selTest&amp;quot; onChange=&amp;quot;checkIt(this)&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;creditcard&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;abc&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;option value=&amp;quot;3&amp;quot;&amp;gt;xyz&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;option value=&amp;quot;4&amp;quot;&amp;gt;other&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;/select&amp;gt;&lt;br /&gt;&amp;lt;p /&amp;gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;ccnumber&amp;quot; style=&amp;quot;visibility: hidden&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 22 Sep 2004 15:01:01 +0000</pubDate>
 <dc:creator>KeithMcL</dc:creator>
 <guid isPermaLink="false">comment 1159272 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159249</link>
    <description> &lt;p&gt;yes, that&#039;s exactly what i m looking for.&lt;br /&gt;
some fields remain hidden, until a user selects and option from a drop down menu or selects it from a radio button group.&lt;br /&gt;
As soon as an option is selected, the hidden fields will become visible and when the option is unselected the fields will become hidden.&lt;/p&gt;
 </description>
     <pubDate>Wed, 22 Sep 2004 07:10:13 +0000</pubDate>
 <dc:creator>pramodkhanna</dc:creator>
 <guid isPermaLink="false">comment 1159249 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159212</link>
    <description> &lt;p&gt;I&#039;m still not sure what you&#039;re looking for. Are you looking to have certain fields hidden on the page until a user chooses an option from a drop down menu?&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Sep 2004 14:09:36 +0000</pubDate>
 <dc:creator>KeithMcL</dc:creator>
 <guid isPermaLink="false">comment 1159212 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159205</link>
    <description> &lt;p&gt;using this style in a form is just an example.&lt;br /&gt;
i can use this style anywhere in the website.&lt;br /&gt;
the main question is can this be done.&lt;br /&gt;
if yes, then how??&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Sep 2004 13:20:16 +0000</pubDate>
 <dc:creator>pramodkhanna</dc:creator>
 <guid isPermaLink="false">comment 1159205 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159201</link>
    <description> &lt;p&gt;It should be noted that this is bad practice. Using javascript to submit the form on a combo box event is not what a user expects, the form should only be submitted when the user presses a submit button.&lt;/p&gt;
&lt;p&gt;Perhaps several pages could be used, with different templates as flipper suggested?&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Sep 2004 08:40:17 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1159201 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159199</link>
    <description> &lt;p&gt;You could do it server side to include a different template for each selection?&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Sep 2004 08:17:05 +0000</pubDate>
 <dc:creator>openmind</dc:creator>
 <guid isPermaLink="false">comment 1159199 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/expanding-collapsing-html-form#comment-1159198</link>
    <description> &lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
no this is not what i wanted. anyway thanks.&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Sep 2004 08:01:38 +0000</pubDate>
 <dc:creator>pramodkhanna</dc:creator>
 <guid isPermaLink="false">comment 1159198 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
