zTree implements searchable function (upgraded version)

黄舟
Release: 2017-02-16 13:48:27
Original
1880 people have browsed it

1. Problem background

(1) Generate zTree

(2) Click on the node to select and assign value to the input box

(3) Enter a certain character, the tree node containing the character is selected, and the color changes


2. Implementation source code

   zTree具有搜索功能       

    Copy after login


    3. Implementation result


    (1) During initialization

    zTree implements searchable function (upgraded version)

    (2) Click on the node

    zTree implements searchable function (upgraded version)

    (3) Enter a certain character

    zTree implements searchable function (upgraded version)



    ##4. Problem analysis

    (1) Defect

    When a character is entered into the input box, the color of the node changes, but it cannot be reset (restores the original color)


    ##5. Fix bug

    ##

       zTree具有搜索功能       
    

      Copy after login

      The above is the content of zTree’s searchable function (upgraded version). 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
      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!