El siguiente snippet nos permite crear un menú de salto con jQuery
$(".menu_salto").change(function() {
var val = $('select option:selected').val();
if (val != '') {
location.href=val;
}
});
Un ejemplo podría ser el siguiente:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Menu Salto jQuery</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".menu_salto").change(function() {
var val = $('select option:selected').val();
if (val != '') {
location.href=val;
}
});
});
</script>
</head>
<body>
<select name="menu" class="menu_salto">
<option value="">Ir a....</option>
<option value="http://www.google.es">Google</option>
<option value="http://www.yahoo.es">Yahoo</option>
<option value="http://dribbble.com/">Dribble</option>
</select>
</body>
</html>




