Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<select id="cc">
    <option value=""></option>
    <option value="1">秀工</option>
        <option value="2">資訊科技</option>
</select>
</body>
</html>
 
$("#cc").change(function(){
    
    switch(this.value){
        case "1":
            window.open("https://www.ssivs.chc.edu.tw/");
    break;
        case "2":
            window.open("https://st.ssivs.chc.edu.tw/");
            break;
        default:
            window.alert("請選擇");
    }
}
);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers