码迷,mamicode.com
首页 > Web开发 > 详细

jquery

时间:2017-01-23 16:40:59      阅读:457      评论:0      收藏:0      [点我收藏+]

标签:charset   tps   hang   ext   2.0   doctype   doc   javascrip   oca   

<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<select id=‘first_area‘>
    <option value=1>上海</option>
    <option value=2>北京</option>    
    <option value=3>深圳</option>    
</select>
<select id=‘second_area‘>
</select>
<select id=‘third_area‘>
</select>
</body>
<script type="text/javascript">
$(document).ready(function(){
    $("#first_area").change(function(){
        var id = $("#first_area").val();
        //$("#second_area").hide();
        //$("#third_area").hide();
        //get_area(id);
        
    $.ajax({
        url: "http://localhost/index.php",
        context: 100,
        success: function(){
            alert(77);
        }
    });
        
    });
});
function get_area(id){
}
</script>
</html>

jquery

标签:charset   tps   hang   ext   2.0   doctype   doc   javascrip   oca   

原文地址:http://www.cnblogs.com/kezheng/p/6344271.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!