Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Option Selected not passing value

$
0
0

I have an HTML Form Web Part passing values for Year to other web parts on the page:

<div>
Select Year:<select name="year" onchange="javascript:_SFSUBMIT_"><option selected>2014</option><option>2013</option><option>2012</option></select></div>

When the page loads, the default value is displayed as "2014" accordingly, however, the value is not being passed on to other web parts.  I need to select another year, then go back to selecting 2014 before it will change the other parts accordingly.

Also tried this:

<div>
Select Year:<select name="year" onchange="javascript:_SFSUBMIT_"><option value="2012">2012</option><option value="2013">2013</option><option value="2014" selected="selected">2014</option></select></div>

Any ideas?


Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>