<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Set InfoPath dropdown selected value...help, please.</title><link>https://www.infopathdev.com:443/forums/thread/90479.aspx</link><pubDate>Thu, 06 Jun 2013 20:25:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90479</guid><dc:creator>Rene'</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90479.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=90479</wfw:commentRss><description>&lt;p&gt;I have created an InfoPath form from a SharePoint list.&amp;nbsp;I am having trouble trying to programmatically (Javascript/JQuery)&amp;nbsp;set the&amp;nbsp;value of a dropdown list on&amp;nbsp;in my InfoPath form.&amp;nbsp;Please&amp;nbsp;review&amp;nbsp;the information&amp;nbsp;below and any advice will be GREATLY appreciated. &lt;/p&gt;&lt;p&gt;Control ID/Name = ctl00_m_g_31a297ba_e524_4046_bbd9_9d8251f416ad_FormControl0&lt;/p&gt;&lt;p&gt;ID = variable that holds the index to set the dropdown list value to.&lt;/p&gt;&lt;p&gt;I have tried this line (among many others) but I the control in the InfoPath form is not setting.&lt;/p&gt;&lt;p&gt;&amp;nbsp;$(&amp;#39;#ctl00_m_g_31a297ba_e524_4046_bbd9_9d8251f416ad_FormControl0&amp;#39;).val(ID);&lt;/p&gt;&lt;p&gt;&amp;nbsp;Please help.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>