Home > Web Front-end > JS Tutorial > jquery Ajax sample code to implement animation effect before loading data_jquery

jquery Ajax sample code to implement animation effect before loading data_jquery

WBOY
Release: 2016-05-16 17:01:07
Original
1157 people have browsed it

Copy code The code is as follows:

$(document).ready(function(){
$.ajax({
type: "get",
cache:false,
url: "ajaxpage.aspx?t=getcity",
dataType: "json",
beforeSend:function(){
                                                                                                                              🎜> success:function(data){
$("#city").html(data.info);//Add drop-down box option
},
complete: function() {$( "#vvv").remove();
}

})})



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template