<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: dropdown list when select hide input type text field or disable</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: dropdown list when select hide input type text field or disable</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 04:00:22 +0000</pubDate>

<item>
<title>turkmedia on "dropdown list when select hide input type text field or disable"</title>
<link>https://www.machform.com/forums/topic/dropdown-list-when-select-hide-input-type-text-field-or-disable#post-6411</link>
<pubDate>Tue, 30 Jun 2009 14:44:01 +0000</pubDate>
<dc:creator>turkmedia</dc:creator>
<guid isPermaLink="false">6411@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;hi&#60;br /&#62;
i dont understand where i change&#60;br /&#62;
i change in includes/view-functions.php by the post  &#60;a href=&#34;http://www.appnitro.com/forums/topic/drop-down-with-other-option?replies=2#post-5552&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/drop-down-with-other-option?replies=2#post-5552&#60;/a&#62;&#60;br /&#62;
but dont work and IE has error when i change the dropdown list and dont hide&#60;/p&#62;
&#60;p&#62;how can i hide a dropdown choises when i select from another dropdown  like gender&#60;br /&#62;
 if gender = male show item 1,2,3,4&#60;br /&#62;
and if gender = female show item 5,6,7,8&#60;br /&#62;
in a drop down&#60;br /&#62;
i want you to make a full guide to hide a dropdown and hide choices of dropdown&#60;br /&#62;
i am makeing a employ form and need this
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "dropdown list when select hide input type text field or disable"</title>
<link>https://www.machform.com/forums/topic/dropdown-list-when-select-hide-input-type-text-field-or-disable#post-6073</link>
<pubDate>Wed, 03 Jun 2009 12:11:44 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6073@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ups .. I missed it :) Thank's ..
&#60;/p&#62;</description>
</item>
<item>
<title>johntorre on "dropdown list when select hide input type text field or disable"</title>
<link>https://www.machform.com/forums/topic/dropdown-list-when-select-hide-input-type-text-field-or-disable#post-6072</link>
<pubDate>Wed, 03 Jun 2009 11:53:55 +0000</pubDate>
<dc:creator>johntorre</dc:creator>
<guid isPermaLink="false">6072@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;THank you so much really help a lot.. by the way guys from the code given by SIR Redityo&#60;/p&#62;
&#60;p&#62;&#60;code&#62;else if ($('#element_12').val() == 3 &#124;&#124;&#60;br /&#62;
$('#element_12').val() == 4 &#124;&#124;&#60;br /&#62;
$('#element_12').val() == 5 &#124;&#124;&#60;br /&#62;
$('#element_12').val() == 6 &#124;&#124;&#60;br /&#62;
$('#element_12').val() == 7  {&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;just add &#60;strong&#62;)&#60;/strong&#62; to the last number to close it... thanks again..
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "dropdown list when select hide input type text field or disable"</title>
<link>https://www.machform.com/forums/topic/dropdown-list-when-select-hide-input-type-text-field-or-disable#post-6071</link>
<pubDate>Wed, 03 Jun 2009 09:32:58 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6071@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Johntoree, &#60;/p&#62;
&#60;p&#62;Thank's to share .. and for make your conditional statement shorter, try to change the code from :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;else if ($(&#38;#39;#element_12&#38;#39;).val() == 3, 4, 5, 6, 7) {&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;else if ($(&#38;#39;#element_12&#38;#39;).val() == 3 &#124;&#124;
$(&#38;#39;#element_12&#38;#39;).val() == 4 &#124;&#124;
$(&#38;#39;#element_12&#38;#39;).val() == 5 &#124;&#124;
$(&#38;#39;#element_12&#38;#39;).val() == 6 &#124;&#124;
$(&#38;#39;#element_12&#38;#39;).val() == 7  {&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;hope this help ..
&#60;/p&#62;</description>
</item>
<item>
<title>johntorre on "dropdown list when select hide input type text field or disable"</title>
<link>https://www.machform.com/forums/topic/dropdown-list-when-select-hide-input-type-text-field-or-disable#post-6065</link>
<pubDate>Tue, 02 Jun 2009 22:01:56 +0000</pubDate>
<dc:creator>johntorre</dc:creator>
<guid isPermaLink="false">6065@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Sir REDITYO your the best.. Thank you so much..&#60;/p&#62;
&#60;p&#62;Sir just to add for this topic and maybe will help this topic in future use. Heres the code for hiding and showing form field.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;function showTextBox() {&#60;/p&#62;
&#60;p&#62;		  if ($('#element_9').val() == '5') {&#60;br /&#62;
			$('#li_11').hide();&#60;br /&#62;
			$('#li_12').hide();&#60;br /&#62;
			$('#li_13').hide();&#60;br /&#62;
			$('#li_14').hide();&#60;br /&#62;
			$('#li_15').hide();&#60;br /&#62;
			$('#li_16').hide();&#60;br /&#62;
			$('#li_17').hide();&#60;br /&#62;
			$('#li_18').hide();&#60;br /&#62;
			$('#li_19').hide();&#60;br /&#62;
			$('#li_20').hide();&#60;br /&#62;
			$('#li_11').show();&#60;br /&#62;
		}&#60;br /&#62;
		 else if ($('#element_9').val() == '6') {&#60;br /&#62;
			$('#li_11').hide();&#60;br /&#62;
			$('#li_12').hide();&#60;br /&#62;
			$('#li_13').hide();&#60;br /&#62;
			$('#li_14').hide();&#60;br /&#62;
			$('#li_15').hide();&#60;br /&#62;
			$('#li_16').hide();&#60;br /&#62;
			$('#li_17').hide();&#60;br /&#62;
			$('#li_18').hide();&#60;br /&#62;
			$('#li_19').hide();&#60;br /&#62;
			$('#li_20').hide();&#60;br /&#62;
			$('#li_11').show();&#60;br /&#62;
		}&#60;br /&#62;
		 else if ($('#element_9').val() == '7') {&#60;br /&#62;
			$('#li_11').hide();&#60;br /&#62;
			$('#li_12').hide();&#60;br /&#62;
			$('#li_13').hide();&#60;br /&#62;
			$('#li_14').hide();&#60;br /&#62;
			$('#li_15').hide();&#60;br /&#62;
			$('#li_16').hide();&#60;br /&#62;
			$('#li_17').hide();&#60;br /&#62;
			$('#li_18').hide();&#60;br /&#62;
			$('#li_19').hide();&#60;br /&#62;
			$('#li_20').hide();&#60;br /&#62;
			$('#li_11').show();&#60;br /&#62;
		}&#60;br /&#62;
		 else if ($('#element_9').val() == '9') {&#60;br /&#62;
			$('#li_11').hide();&#60;br /&#62;
			$('#li_12').hide();&#60;br /&#62;
			$('#li_13').hide();&#60;br /&#62;
			$('#li_14').hide();&#60;br /&#62;
			$('#li_15').hide();&#60;br /&#62;
			$('#li_16').hide();&#60;br /&#62;
			$('#li_17').hide();&#60;br /&#62;
			$('#li_18').hide();&#60;br /&#62;
			$('#li_19').hide();&#60;br /&#62;
			$('#li_20').hide();&#60;br /&#62;
			$('#li_20').show();&#60;br /&#62;
		}&#60;br /&#62;
		else if ($('#element_9').val() == '10') {&#60;br /&#62;
			$('#li_11').hide();&#60;br /&#62;
			$('#li_12').hide();&#60;br /&#62;
			$('#li_13').hide();&#60;br /&#62;
			$('#li_14').hide();&#60;br /&#62;
			$('#li_15').hide();&#60;br /&#62;
			$('#li_16').hide();&#60;br /&#62;
			$('#li_17').hide();&#60;br /&#62;
			$('#li_18').hide();&#60;br /&#62;
			$('#li_19').hide();&#60;br /&#62;
			$('#li_20').hide();&#60;br /&#62;
			$('#li_20').show();&#60;br /&#62;
		} &#60;/p&#62;
&#60;p&#62;		 else  {&#60;br /&#62;
			$('#li_11').hide();&#60;br /&#62;
			$('#li_12').hide();&#60;br /&#62;
			$('#li_13').hide();&#60;br /&#62;
			$('#li_14').hide();&#60;br /&#62;
			$('#li_15').hide();&#60;br /&#62;
			$('#li_16').hide();&#60;br /&#62;
			$('#li_17').hide();&#60;br /&#62;
			$('#li_18').hide();&#60;br /&#62;
			$('#li_19').hide();&#60;br /&#62;
			$('#li_20').hide();&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;	}&#60;br /&#62;
	&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;li&#62;
BUT SIR REDITYO is there anyway to make it short and smooth...&#60;br /&#62;
heres the example but got an error when combining..&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;&#60;br /&#62;
	function showTextBox2() {&#60;/p&#62;
&#60;p&#62;		  if ($('#element_12').val() == '1') {&#60;br /&#62;
			$('#li_19').show();&#60;br /&#62;
			$('#li_14').hide();&#60;br /&#62;
			$('#li_15').hide();&#60;br /&#62;
			$('#li_16').hide();&#60;br /&#62;
			$('#li_17').hide();&#60;br /&#62;
			$('#li_18').hide();&#60;br /&#62;
			$('#li_21').hide();&#60;br /&#62;
			$('#li_22').hide();&#60;br /&#62;
		}&#60;br /&#62;
		&#60;strong&#62;else if ($('#element_12').val() == 3, 4, 5, 6, 7)&#60;/strong&#62; {&#60;br /&#62;
			$('#li_13').show();&#60;br /&#62;
			$('#li_14').hide();&#60;br /&#62;
			$('#li_15').hide();&#60;br /&#62;
			$('#li_16').hide();&#60;br /&#62;
			$('#li_17').hide();&#60;br /&#62;
			$('#li_18').hide();&#60;br /&#62;
			$('#li_19').hide();&#60;br /&#62;
			$('#li_21').hide();&#60;br /&#62;
			$('#li_22').hide();&#60;br /&#62;
		}&#60;br /&#62;
 else  {&#60;/p&#62;
&#60;p&#62;			$('#li_13').hide();&#60;br /&#62;
			$('#li_14').hide();&#60;br /&#62;
			$('#li_15').hide();&#60;br /&#62;
			$('#li_16').hide();&#60;br /&#62;
			$('#li_17').hide();&#60;br /&#62;
			$('#li_18').hide();&#60;br /&#62;
			$('#li_19').hide();&#60;br /&#62;
			$('#li_21').hide();&#60;br /&#62;
			$('#li_22').hide();&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;	}&#60;br /&#62;
&#38;lt;/script&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/li&#62;</description>
</item>
<item>
<title>redityo on "dropdown list when select hide input type text field or disable"</title>
<link>https://www.machform.com/forums/topic/dropdown-list-when-select-hide-input-type-text-field-or-disable#post-6060</link>
<pubDate>Tue, 02 Jun 2009 20:12:22 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6060@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You need to change in java script section, for example your another text box id to be hide is &#34;element_3&#34; then the code should be like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;

	{$add_jquery}

	function showTextBox() {
		//reset text box value
		$(&#38;#39;#element_1&#38;#39;).val(&#38;#39;&#38;#39;);

		//show hide the field
		//change the value based on your &#38;quot;other&#38;quot; selection value
		if ($(&#38;#39;#element_2&#38;#39;).val() == &#38;#39;2&#38;#39;) {
			$(&#38;#39;#li_1&#38;#39;).show();
		} else  {
			$(&#38;#39;#li_1&#38;#39;).hide();
		}
	}

	function showTextBox2() {
		//reset text box value
		$(&#38;#39;#element_3&#38;#39;).val(&#38;#39;&#38;#39;);

		//show hide the field
		//change the value based on your &#38;quot;other&#38;quot; selection value
		if ($(&#38;#39;#element_2&#38;#39;).val() == &#38;#39;2&#38;#39;) {
			$(&#38;#39;#li_3&#38;#39;).show();
		} else  {
			$(&#38;#39;#li_3&#38;#39;).hide();
		}
	}

&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;after that you can call it like this &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($element-&#38;gt;id== &#38;#39;12&#38;#39;) {
$add_event = &#38;#39;onchange=&#38;quot;javascript:showTextBox2()&#38;quot;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>johntorre on "dropdown list when select hide input type text field or disable"</title>
<link>https://www.machform.com/forums/topic/dropdown-list-when-select-hide-input-type-text-field-or-disable#post-6058</link>
<pubDate>Tue, 02 Jun 2009 15:11:59 +0000</pubDate>
<dc:creator>johntorre</dc:creator>
<guid isPermaLink="false">6058@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;hi Sir Redityo... from the solution you gave.. can i ask how can i add different function showtextbox2() in the specific element?&#60;/p&#62;
&#60;p&#62;for example &#60;/p&#62;
&#60;blockquote&#62;
&#60;p&#62;if ($_GET['id'] == 1) {&#60;br /&#62;
	$add_event = 'onchange=&#34;javascript:showTextBox()&#34;';&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;i just want to add another showtextbox2()&#60;br /&#62;
for specific elements only. how to write that sir..&#60;/p&#62;
&#60;p&#62;something like this logic sir:&#60;/p&#62;
&#60;p&#62;if ($element-&#38;gt;id)== '12' {&#60;br /&#62;
$add_event = 'onchange=&#34;javascript:showTextBox(2)&#34;';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;Thank you...
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "dropdown list when select hide input type text field or disable"</title>
<link>https://www.machform.com/forums/topic/dropdown-list-when-select-hide-input-type-text-field-or-disable#post-5815</link>
<pubDate>Tue, 12 May 2009 18:42:01 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5815@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I think your problem similar with this post :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/drop-down-with-other-option?replies=2#post-5552&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/drop-down-with-other-option?replies=2#post-5552&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>johntorre on "dropdown list when select hide input type text field or disable"</title>
<link>https://www.machform.com/forums/topic/dropdown-list-when-select-hide-input-type-text-field-or-disable#post-5809</link>
<pubDate>Mon, 11 May 2009 20:38:37 +0000</pubDate>
<dc:creator>johntorre</dc:creator>
<guid isPermaLink="false">5809@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Is it possible to hide or disable 1 text area field when i select one of the option in my DROPDOWN LIST..
&#60;/p&#62;</description>
</item>

</channel>
</rss>
