<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dynamic Country State Javascript Menu Example</title>
	<atom:link href="http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/</link>
	<description>Random Snippets of Code and Ideas for any Web Developer</description>
	<lastBuildDate>Sat, 17 Jul 2010 11:08:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Aswadi</title>
		<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/comment-page-1/#comment-1480</link>
		<dc:creator>Aswadi</dc:creator>
		<pubDate>Fri, 27 Feb 2009 17:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/?p=3#comment-1480</guid>
		<description>Hi,

Thanks for this code. I have question. If we want to have the same response like this script but the trigger is not a combolist but the text box, how to make it works?

Please help me.

Thanks alot.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for this code. I have question. If we want to have the same response like this script but the trigger is not a combolist but the text box, how to make it works?</p>
<p>Please help me.</p>
<p>Thanks alot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sho</title>
		<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/comment-page-1/#comment-1418</link>
		<dc:creator>Sho</dc:creator>
		<pubDate>Sat, 21 Feb 2009 06:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/?p=3#comment-1418</guid>
		<description>I have copy and pasted the above form but its not working! it doesnt give any error and doesnt work . . don&#039;t know why! actually I want sth like this:https://www.linkedin.com/secure/register

there is a section called &quot;I am currently&quot;, when you select an option, it gives different options . . please guide me, Its about a week I am working on this and couldnt find the answer . . i will really appreciate if you would do so, looking forward to get a reply! bye</description>
		<content:encoded><![CDATA[<p>I have copy and pasted the above form but its not working! it doesnt give any error and doesnt work . . don&#8217;t know why! actually I want sth like this:https://www.linkedin.com/secure/register</p>
<p>there is a section called &#8220;I am currently&#8221;, when you select an option, it gives different options . . please guide me, Its about a week I am working on this and couldnt find the answer . . i will really appreciate if you would do so, looking forward to get a reply! bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hoshi</title>
		<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/comment-page-1/#comment-1089</link>
		<dc:creator>Hoshi</dc:creator>
		<pubDate>Sun, 04 Jan 2009 11:36:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/?p=3#comment-1089</guid>
		<description>Hi Knix, im learning a lot from your site. Nice articles and easy to understand. im very new with this javascrpt and html, but i found your tutorial really helpful

Ok, im trying to understand your post and i want to make something like this, the user has 3 options, first select country then state and the last one is town.

I did try changing the script but it wont work for me..

Can u do a little check for me..?

here the example http://www.sempoi.biz/html/index.html

p/s: sorry for my poor english</description>
		<content:encoded><![CDATA[<p>Hi Knix, im learning a lot from your site. Nice articles and easy to understand. im very new with this javascrpt and html, but i found your tutorial really helpful</p>
<p>Ok, im trying to understand your post and i want to make something like this, the user has 3 options, first select country then state and the last one is town.</p>
<p>I did try changing the script but it wont work for me..</p>
<p>Can u do a little check for me..?</p>
<p>here the example <a href="http://www.sempoi.biz/html/index.html" rel="nofollow">http://www.sempoi.biz/html/index.html</a></p>
<p>p/s: sorry for my poor english</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Knix</title>
		<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/comment-page-1/#comment-452</link>
		<dc:creator>Knix</dc:creator>
		<pubDate>Sat, 04 Oct 2008 06:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/?p=3#comment-452</guid>
		<description>=)</description>
		<content:encoded><![CDATA[<p>=)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumeet</title>
		<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/comment-page-1/#comment-451</link>
		<dc:creator>Sumeet</dc:creator>
		<pubDate>Sat, 04 Oct 2008 06:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/?p=3#comment-451</guid>
		<description>Thanks a lot! It worked perfectly. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks a lot! It worked perfectly. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Knix</title>
		<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/comment-page-1/#comment-450</link>
		<dc:creator>Knix</dc:creator>
		<pubDate>Sat, 04 Oct 2008 04:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/?p=3#comment-450</guid>
		<description>Actually, you do get a JavaScript error.  I highly recommend that you use FireFox with the FireBug plugin.  It is extremely helpful for debugging JavaScript.  Anyway, the error is related to an unterminated JavaScript code that you have:
&lt;pre line=&quot;1&quot; lang=&quot;javascript&quot;&gt;
if (country == &#039;INDIA&#039;) {
  stateSelect = &#039;&lt;select name=&quot;state&quot; id=&quot;state&quot;&gt;
  &lt;option value=&quot;Andhra Pradesh&quot;&gt;Andhra Pradesh&lt;/option&gt;
  &lt;option value=&quot;Arunachal Pradesh&quot;&gt;Arunachal Pradesh&lt;/option&gt;
  &lt;option value=&quot;Assam&quot;&gt;Assam&lt;/option&gt;
  &lt;option value=&quot;Bihar&quot;&gt;Bihar&lt;/option&gt;
  &lt;option value=&quot;Chhattisgarh&quot;&gt;Chhattisgarh&lt;/option&gt;
  &lt;option value=&quot;Goa&quot;&gt;Goa&lt;/option&gt;
  &lt;option value=&quot;Gujarat&quot;&gt;Gujarat&lt;/option&gt;
  &lt;option value=&quot;Haryana&quot;&gt;Haryana&lt;/option&gt;
  &lt;option value=&quot;Himachal Pradesh&quot;&gt;Himachal Pradesh&lt;/option&gt;
  &lt;option value=&quot;Jammu and Kashmir&quot;&gt;Jammu and Kashmir&lt;/option&gt;
  &lt;option value=&quot;Jharkhand&quot;&gt;Jharkhand&lt;/option&gt;
  &lt;option value=&quot;Karnataka&quot;&gt;Karnataka&lt;/option&gt;
  &lt;option value=&quot;Kerala&quot;&gt;Kerala&lt;/option&gt;
  &lt;option value=&quot;Madhya Pradesh&quot;&gt;Madhya Pradesh&lt;/option&gt;
  &lt;option value=&quot;Maharashtra&quot;&gt;Maharashtra&lt;/option&gt;
  &lt;option value=&quot;Manipur&quot;&gt;Manipur&lt;/option&gt;
  &lt;option value=&quot;Meghalaya&quot;&gt;Meghalaya&lt;/option&gt;
  &lt;option value=&quot;Mizoram&quot;&gt;Mizoram&lt;/option&gt;
  &lt;option value=&quot;Nagaland&quot;&gt;Nagaland&lt;/option&gt;
  &lt;option value=&quot;Orissa&quot;&gt;Orissa&lt;/option&gt;
  &lt;option value=&quot;Punjab&quot;&gt;Punjab&lt;/option&gt;
  &lt;option value=&quot;Rajasthan&quot;&gt;Rajasthan&lt;/option&gt;
  &lt;option value=&quot;Sikkim&quot;&gt;Sikkim&lt;/option&gt;
  &lt;option value=&quot;Tamil Nadu&quot;&gt;Tamil Nadu&lt;/option&gt;
  &lt;option value=&quot;Tripura&quot;&gt;Tripura&lt;/option&gt;
  &lt;option value=&quot;Uttar Pradesh&quot;&gt;Uttar Pradesh&lt;/option&gt;
  &lt;option value=&quot;Uttarakhand&quot;&gt;Uttarakhand&lt;/option&gt;
  &lt;option value=&quot;West Bengal&quot;&gt;West Bengal&lt;/option&gt;
  &lt;option value=&quot;Delhi&quot;&gt;Delhi&lt;/option&gt;
  &lt;/select&gt;&#039;;
  }
&lt;/pre&gt;

I think the newlines are killing this for you.  Try something like this without the newlines between the single quotes:
&lt;pre line=&quot;1&quot; lang=&quot;javascript&quot;&gt;
 if (country == &#039;INDIA&#039;) {
   stateSelect = &#039;&lt;select name=&quot;state&quot; id=&quot;state&quot;&gt;&lt;option value=&quot;Andhra Pradesh&quot;&gt;Andhra Pradesh&lt;/option&gt;&lt;option value=&quot;Arunachal Pradesh&quot;&gt;Arunachal Pradesh&lt;/option&gt;&lt;option value=&quot;Assam&quot;&gt;Assam&lt;/option&gt;&lt;option value=&quot;Bihar&quot;&gt;Bihar&lt;/option&gt;&lt;option value=&quot;Chhattisgarh&quot;&gt;Chhattisgarh&lt;/option&gt;&lt;option value=&quot;Goa&quot;&gt;Goa&lt;/option&gt;&lt;/select&gt;&#039;;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Actually, you do get a JavaScript error.  I highly recommend that you use FireFox with the FireBug plugin.  It is extremely helpful for debugging JavaScript.  Anyway, the error is related to an unterminated JavaScript code that you have:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>country <span style="color: #339933;">==</span> <span style="color: #3366CC;">'INDIA'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  stateSelect <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;select name=&quot;state&quot; id=&quot;state&quot;&gt;
  &lt;option value=&quot;Andhra Pradesh&quot;&gt;Andhra Pradesh&lt;/option&gt;
  &lt;option value=&quot;Arunachal Pradesh&quot;&gt;Arunachal Pradesh&lt;/option&gt;
  &lt;option value=&quot;Assam&quot;&gt;Assam&lt;/option&gt;
  &lt;option value=&quot;Bihar&quot;&gt;Bihar&lt;/option&gt;
  &lt;option value=&quot;Chhattisgarh&quot;&gt;Chhattisgarh&lt;/option&gt;
  &lt;option value=&quot;Goa&quot;&gt;Goa&lt;/option&gt;
  &lt;option value=&quot;Gujarat&quot;&gt;Gujarat&lt;/option&gt;
  &lt;option value=&quot;Haryana&quot;&gt;Haryana&lt;/option&gt;
  &lt;option value=&quot;Himachal Pradesh&quot;&gt;Himachal Pradesh&lt;/option&gt;
  &lt;option value=&quot;Jammu and Kashmir&quot;&gt;Jammu and Kashmir&lt;/option&gt;
  &lt;option value=&quot;Jharkhand&quot;&gt;Jharkhand&lt;/option&gt;
  &lt;option value=&quot;Karnataka&quot;&gt;Karnataka&lt;/option&gt;
  &lt;option value=&quot;Kerala&quot;&gt;Kerala&lt;/option&gt;
  &lt;option value=&quot;Madhya Pradesh&quot;&gt;Madhya Pradesh&lt;/option&gt;
  &lt;option value=&quot;Maharashtra&quot;&gt;Maharashtra&lt;/option&gt;
  &lt;option value=&quot;Manipur&quot;&gt;Manipur&lt;/option&gt;
  &lt;option value=&quot;Meghalaya&quot;&gt;Meghalaya&lt;/option&gt;
  &lt;option value=&quot;Mizoram&quot;&gt;Mizoram&lt;/option&gt;
  &lt;option value=&quot;Nagaland&quot;&gt;Nagaland&lt;/option&gt;
  &lt;option value=&quot;Orissa&quot;&gt;Orissa&lt;/option&gt;
  &lt;option value=&quot;Punjab&quot;&gt;Punjab&lt;/option&gt;
  &lt;option value=&quot;Rajasthan&quot;&gt;Rajasthan&lt;/option&gt;
  &lt;option value=&quot;Sikkim&quot;&gt;Sikkim&lt;/option&gt;
  &lt;option value=&quot;Tamil Nadu&quot;&gt;Tamil Nadu&lt;/option&gt;
  &lt;option value=&quot;Tripura&quot;&gt;Tripura&lt;/option&gt;
  &lt;option value=&quot;Uttar Pradesh&quot;&gt;Uttar Pradesh&lt;/option&gt;
  &lt;option value=&quot;Uttarakhand&quot;&gt;Uttarakhand&lt;/option&gt;
  &lt;option value=&quot;West Bengal&quot;&gt;West Bengal&lt;/option&gt;
  &lt;option value=&quot;Delhi&quot;&gt;Delhi&lt;/option&gt;
  &lt;/select&gt;'</span>;
  <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>I think the newlines are killing this for you.  Try something like this without the newlines between the single quotes:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript javascript" style="font-family:monospace;"> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>country <span style="color: #339933;">==</span> <span style="color: #3366CC;">'INDIA'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   stateSelect <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;select name=&quot;state&quot; id=&quot;state&quot;&gt;&lt;option value=&quot;Andhra Pradesh&quot;&gt;Andhra Pradesh&lt;/option&gt;&lt;option value=&quot;Arunachal Pradesh&quot;&gt;Arunachal Pradesh&lt;/option&gt;&lt;option value=&quot;Assam&quot;&gt;Assam&lt;/option&gt;&lt;option value=&quot;Bihar&quot;&gt;Bihar&lt;/option&gt;&lt;option value=&quot;Chhattisgarh&quot;&gt;Chhattisgarh&lt;/option&gt;&lt;option value=&quot;Goa&quot;&gt;Goa&lt;/option&gt;&lt;/select&gt;'</span>;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Sumeet</title>
		<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/comment-page-1/#comment-449</link>
		<dc:creator>Sumeet</dc:creator>
		<pubDate>Sat, 04 Oct 2008 04:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/?p=3#comment-449</guid>
		<description>I am not getting any error. I have placed the code as stated above. But when I check it online it doesnt work. you can check my pages at www.shubhkriti.net/en/register.php</description>
		<content:encoded><![CDATA[<p>I am not getting any error. I have placed the code as stated above. But when I check it online it doesnt work. you can check my pages at <a href="http://www.shubhkriti.net/en/register.php" rel="nofollow">http://www.shubhkriti.net/en/register.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Knix</title>
		<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/comment-page-1/#comment-446</link>
		<dc:creator>Knix</dc:creator>
		<pubDate>Fri, 03 Oct 2008 15:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/?p=3#comment-446</guid>
		<description>Hi Summet,

Are you getting any error?  Are you sure your JavaScript is getting loaded correctly?</description>
		<content:encoded><![CDATA[<p>Hi Summet,</p>
<p>Are you getting any error?  Are you sure your JavaScript is getting loaded correctly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumeet</title>
		<link>http://www.randomsnippets.com/2008/02/09/dynamic-country-state-javascript-menu-example/comment-page-1/#comment-444</link>
		<dc:creator>Sumeet</dc:creator>
		<pubDate>Fri, 03 Oct 2008 12:17:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/?p=3#comment-444</guid>
		<description>this script is not working for me. Can you suggest something.</description>
		<content:encoded><![CDATA[<p>this script is not working for me. Can you suggest something.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
