How to achieve select select secondary linkage effect

一个新手
Release: 2017-09-22 09:00:10
Original
3217 people have browsed it

  • 一级类目:
  • 二级类目:
  • Copy after login
    function changeCate(){ var mainCategoryId = $("#mainCategoryId").find("option:selected").val(); if(mainCategoryId == "") { $(".categoryId").empty().append(""); return false; } $.ajax({ url:'/tvtao/video/item/category.htm', type:"post", dataType:"json", data: {'_tb_token_' : $("input[name='_tb_token_']").val(), parantId : mainCategoryId}, success: function (data) { console.log(data); $(".categoryId").empty().append(""); for(var i = 0, len = data.length; i < len; i++) { alert(data[i].id); $(".categoryId").append($("")); } } }); }
    Copy after login

    The above is the detailed content of How to achieve select select secondary linkage effect. For more information, please follow other related articles on the PHP Chinese website!

    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
    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!