search

Home  >  Q&A  >  body text

javascript - jquery uses the append() method to add, for example, easyui's combotree to make a tree-shaped drop-down box. Please help.

Hello everyone, I am new to jquery and easyui. At present, I want to implement a function. Click "Add Button" and a selectable tree drop-down box will pop up for selection and submission.
The current implementation method is to declare an element and then append it to the form. But the pop-up drop-down box cannot pop up the tree map.

The current phenomenon is that the select written directly in the html works well, but the select added through the add button cannot be clicked (the same for org and org2). The styles of the two are even different, as shown below:

Please give me some advice on how to make the drop-down box generated by add work. Thank you very much~

为情所困为情所困2745 days ago584

reply all(3)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-19 10:49:20

    I know what’s going on...You have to create the element first and then declare the combotree attribute, otherwise it won’t load...

    reply
    0
  • 怪我咯

    怪我咯2017-05-19 10:49:20

    Open the debugging tool and find out the reason

    reply
    0
  • PHP中文网

    PHP中文网2017-05-19 10:49:20

    Send the source code and take a look

    reply
    0
  • Cancelreply