<?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: jQuery Get Selected Index Examples &#8211; 2 Ways	</title>
	<atom:link href="https://theextremewebdesigns.com/blog/jquery-get-selected-index-jquery-get-selected-option-index-2-ways/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog/jquery-get-selected-index-jquery-get-selected-option-index-2-ways/</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Mon, 30 Jul 2012 14:08:52 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
	<item>
		<title>
		By: Robert		</title>
		<link>https://theextremewebdesigns.com/blog/jquery-get-selected-index-jquery-get-selected-option-index-2-ways/#comment-153</link>

		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Mon, 30 Jul 2012 14:08:52 +0000</pubDate>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=675#comment-153</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://theextremewebdesigns.com/blog/jquery-get-selected-index-jquery-get-selected-option-index-2-ways/#comment-152&quot;&gt;essel jojo&lt;/a&gt;.

Hi Jojo,
It&#039;s not working because you probably don&#039;t have the html select dropdown on the page or you are using incorrect ID. In your code, you are using &lt;strong&gt;#myselect&lt;/strong&gt;. This means that your HTML select dropdown MUST have an ID of &lt;strong&gt;myselect&lt;/strong&gt;. Unless this is fixed, it won&#039;t work.

In order to help you, I have added a complete example that shows you exactly how to do it. Just refer to the example above and try it out &amp; let me know how that goes.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://theextremewebdesigns.com/blog/jquery-get-selected-index-jquery-get-selected-option-index-2-ways/#comment-152">essel jojo</a>.</p>
<p>Hi Jojo,<br />
It&#8217;s not working because you probably don&#8217;t have the html select dropdown on the page or you are using incorrect ID. In your code, you are using <strong>#myselect</strong>. This means that your HTML select dropdown MUST have an ID of <strong>myselect</strong>. Unless this is fixed, it won&#8217;t work.</p>
<p>In order to help you, I have added a complete example that shows you exactly how to do it. Just refer to the example above and try it out &#038; let me know how that goes.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: essel jojo		</title>
		<link>https://theextremewebdesigns.com/blog/jquery-get-selected-index-jquery-get-selected-option-index-2-ways/#comment-152</link>

		<dc:creator><![CDATA[essel jojo]]></dc:creator>
		<pubDate>Mon, 30 Jul 2012 11:08:58 +0000</pubDate>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=675#comment-152</guid>

					<description><![CDATA[It is not working for me.
alert($(&quot;#myselect option:selected&quot;).index();
the above shows -1.]]></description>
			<content:encoded><![CDATA[<p>It is not working for me.<br />
alert($(&#8220;#myselect option:selected&#8221;).index();<br />
the above shows -1.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
