Skip to content

Instantly share code, notes, and snippets.

@dbergey
Created December 16, 2010 17:59
Show Gist options
  • Save dbergey/743732 to your computer and use it in GitHub Desktop.
Save dbergey/743732 to your computer and use it in GitHub Desktop.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<select multiple>
<option value="4" selected>four</option>
<option value="5">five</option>
</select>
<div id="result"></div>
<script>
$('#result').html( String($('select').val()) );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment