Home > Backend Development > PHP Tutorial > PHP方面的,求!解决思路

PHP方面的,求!解决思路

WBOY
Release: 2016-06-13 11:56:24
Original
842 people have browsed it

PHP方面的,急求!
   本人用Ajax在视图页面的一个ID为d_content的DIV中返回了一些数据,我想获取这些数据中的一个DIV的 ID,以便用jquery设置它的样式,但是怎么都拿不到这个ID,视图源代码中也没Ajax返回的数据的代码,请问这要怎么解决?
------解决方案--------------------
具体查看下ajax是否返回div数据成功

------解决方案--------------------
你返回的内容是什么格式的?
------解决方案--------------------

$("#sel_list").change(function(){<br />  $.get("/shop/showphotos", {album_id:$("#sel_list").val()}, function(dt) {<br />    $('#d_content').html(dt);<br />    $('#d_content').find('...').css(...);<br />  },"html");<br />});
Copy after login

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