I have a dropdown menu (code below). I have a span of text that I need to reflect the LABEL (not value) of the currently selected option in the dropdown "fbContentsMenu". So if the user selected the second option, the span of text would change to 'D Home - Mar-Apr 2010'
I also have a hyperlink to the right of this span that reads "Click here to learn more." This hyperlink also needs to reflect the LABEL of the same dropdown, but with the spaces replaced with + to be URL safe. Again, if the second option is selected in the dropdown, then the hyperlink code would read:
ck here to learn more.</a>
Any ideas on how this can be accomplished? Thanks!
<select id="fbContentsMenu" name="fbContentsMenu">
<option value="2">D Home - May-Jun 2010</option>
<option value="4">D Home - Mar-Apr 2010</option>
<option value="6">D Home - Mar-Apr 2009</option>