<?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: Select element, return 2 values</title>
	<atom:link href="http://www.devexp.eu/2009/01/30/select-element-return-2-values/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devexp.eu/2009/01/30/select-element-return-2-values/</link>
	<description>DEVelopment EXPerience, shared with the world!</description>
	<lastBuildDate>Thu, 06 Oct 2011 09:32:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: johann</title>
		<link>http://www.devexp.eu/2009/01/30/select-element-return-2-values/comment-page-1/#comment-290</link>
		<dc:creator>johann</dc:creator>
		<pubDate>Mon, 18 May 2009 23:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexp.eu/?p=340#comment-290</guid>
		<description>Ok, Think I finally got it to work.</description>
		<content:encoded><![CDATA[<p>Ok, Think I finally got it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johann</title>
		<link>http://www.devexp.eu/2009/01/30/select-element-return-2-values/comment-page-1/#comment-288</link>
		<dc:creator>johann</dc:creator>
		<pubDate>Mon, 18 May 2009 18:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexp.eu/?p=340#comment-288</guid>
		<description>I Removed the  in the code so you get a better Idea.

select id=&quot;weblog_id&quot; name=&quot;data[cat]&quot;
option value=&quot;null&quot; selected=&quot;selected&quot;&gt;All/option
option value=&quot;2,3&quot;test/option
option value=&quot;3&quot;&gt;Goods/option
option value=&quot;2&quot;&gt;Services/option
option value=&quot;5&quot;&gt;Wants/option
/select</description>
		<content:encoded><![CDATA[<p>I Removed the  in the code so you get a better Idea.</p>
<p>select id=&#8221;weblog_id&#8221; name=&#8221;data[cat]&#8221;<br />
option value=&#8221;null&#8221; selected=&#8221;selected&#8221;&gt;All/option<br />
option value=&#8221;2,3&#8243;test/option<br />
option value=&#8221;3&#8243;&gt;Goods/option<br />
option value=&#8221;2&#8243;&gt;Services/option<br />
option value=&#8221;5&#8243;&gt;Wants/option<br />
/select</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johann</title>
		<link>http://www.devexp.eu/2009/01/30/select-element-return-2-values/comment-page-1/#comment-287</link>
		<dc:creator>johann</dc:creator>
		<pubDate>Mon, 18 May 2009 18:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexp.eu/?p=340#comment-287</guid>
		<description>Below is the form code. Hopefully it shows in the comment. I&#039;m trying to pass values 2,3 


&quot;
All
test
Goods
Services
Wants
&quot;</description>
		<content:encoded><![CDATA[<p>Below is the form code. Hopefully it shows in the comment. I&#8217;m trying to pass values 2,3 </p>
<p>&#8221;<br />
All<br />
test<br />
Goods<br />
Services<br />
Wants<br />
&#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Van de Voorde Toni</title>
		<link>http://www.devexp.eu/2009/01/30/select-element-return-2-values/comment-page-1/#comment-285</link>
		<dc:creator>Van de Voorde Toni</dc:creator>
		<pubDate>Mon, 18 May 2009 16:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexp.eu/?p=340#comment-285</guid>
		<description>Why do you use values[3] ?</description>
		<content:encoded><![CDATA[<p>Why do you use values[3] ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johann</title>
		<link>http://www.devexp.eu/2009/01/30/select-element-return-2-values/comment-page-1/#comment-283</link>
		<dc:creator>Johann</dc:creator>
		<pubDate>Mon, 18 May 2009 15:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexp.eu/?p=340#comment-283</guid>
		<description>Thank for taking the time with the example. I still seem to be doing something wrong. I pasted my code below. What I&#039;m trying to do is pass multiple values for option test

Your help is appreciated

html
==============================

All
test
Goods
Services
Wants


Your script modified to use weblog_id
===============================

      
      jQuery(function($) {
        
        $(&quot;#weblog_id&quot;).change(function () {
          var values = ($(this)[0].value).split(&quot;,&quot;);
          
          console.log(&quot;first value = &quot; + values[0]);
          console.log(&quot;second value = &quot; + values[3]);
        });
        
      });
    </description>
		<content:encoded><![CDATA[<p>Thank for taking the time with the example. I still seem to be doing something wrong. I pasted my code below. What I&#8217;m trying to do is pass multiple values for option test</p>
<p>Your help is appreciated</p>
<p>html<br />
==============================</p>
<p>All<br />
test<br />
Goods<br />
Services<br />
Wants</p>
<p>Your script modified to use weblog_id<br />
===============================</p>
<p>      jQuery(function($) {</p>
<p>        $(&#8220;#weblog_id&#8221;).change(function () {<br />
          var values = ($(this)[0].value).split(&#8220;,&#8221;);</p>
<p>          console.log(&#8220;first value = &#8221; + values[0]);<br />
          console.log(&#8220;second value = &#8221; + values[3]);<br />
        });</p>
<p>      });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Van de Voorde Toni</title>
		<link>http://www.devexp.eu/2009/01/30/select-element-return-2-values/comment-page-1/#comment-282</link>
		<dc:creator>Van de Voorde Toni</dc:creator>
		<pubDate>Mon, 18 May 2009 11:16:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexp.eu/?p=340#comment-282</guid>
		<description>You can download a sample here: http://www.devexp.eu/wp-content/uploads/2009/05/selectexamplehtml.gz</description>
		<content:encoded><![CDATA[<p>You can download a sample here: <a href="http://www.devexp.eu/wp-content/uploads/2009/05/selectexamplehtml.gz" rel="nofollow">http://www.devexp.eu/wp-content/uploads/2009/05/selectexamplehtml.gz</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johann</title>
		<link>http://www.devexp.eu/2009/01/30/select-element-return-2-values/comment-page-1/#comment-280</link>
		<dc:creator>Johann</dc:creator>
		<pubDate>Sun, 17 May 2009 04:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexp.eu/?p=340#comment-280</guid>
		<description>Do you have a working sample I could look at? I would appreciate it.</description>
		<content:encoded><![CDATA[<p>Do you have a working sample I could look at? I would appreciate it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

