jquery - get selected value from dropdown

JavaScript
voted: 0
vote
select

Get selected value from select using val()

<select label="Expression" name="expression_id" id="expression_id">
    <option value="1">expression 1</option>
    <option value="2">expression 2</option>
</select>
<script type="text/javascript">
    $(document).ready(function () {
        var selected = $("#expression_id").val();
    });
</script>
working url: not entered
version: not entered
Leave a Comment:
Characters left:
No comments yet.