'Open page in another window (abrir pagina en otra ventana) with jQuery [closed]
The code below opens pagina.php in the same page, but I want to open it in another window.
<html>
<head>
<script type="text/javascript" src="jquery-1.10.0.min.js"></script>
<script language="JavaScript" type="text/JavaScript">
$(document).ready(function(){
$("#select1").change(function(event){
var id = $("#select1").find(':selected').val();
$(location).attr('href','pagina.php?id='+id);
});
});
</script>
</head>
<body>
<select name="select1" id="selec#1">
<option value='1'>opcion una </option>
</select>
</body>
</html>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
