Jquery reads xml

黄舟
Release: 2017-02-15 15:51:39
Original
1506 people have browsed it

Please indicate the source when reprinting: Jquery reads xml

xml:

  全勤 F   出差 D   差旅途中 T  
Copy after login


Jquyery

var option = "";

$.get('../Handler/AttendanceStatus.xml', function (d) { $(d).find('values').each(function () { var $val = $(this); var el = $val.find("el").text(); var des = $val.find("content").text(); option += ""; //alert(option); }); strAttendanceStatusSelect = ""; //alert(strAttendanceStatusSelect); });
Copy after login

The above is the content of Jquery reading xml. For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!