blob: a48d9606ddcdb16f3715d3d5cbd6cbd289bfab52 [file] [log] [blame]
<!doctype html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#cars').val('3');
</script>
</head>
<body>
<form action="" method="get">
<select name="id" id="cars" onchange="this.form.submit()">
<option value="">Select...</option>
<option value="1">Toyota</option>
<option value="2">Nissan</option>
<option value="3" selected="selected">Dodge</option>
</select>
</form>
</body>
</html>