Home > Web Front-end > JS Tutorial > body text

jquery gets loop tag copy

巴扎黑
Release: 2016-11-25 14:34:28
Original
1569 people have browsed it

var id = getSearchObj().id; 
var cxlx = flag== ""?"1":flag; 
if(cxlx==1){//显示详细信息 
$.ajax({ 
type:"post", 
url: "/test/test.co", 
data:"i_id="+id+"&i_cxlx="+cxlx, 
success: function(data){ 
        if(data.code=="1"){ 
        var datas = data.resultSet; 
        var font = $(".font01"); 
$.each(font,function(i,e){ 
e.nextElementSibling.innerHTML=datas[0][e.innerHTML]; 
        }); 
        }else{ 
        alert(data.message); 
        } 
      } 
});

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