A simple example of treegrid usage in jquery easyui_jquery
WBOYOriginal
2016-05-16 16:59:361160browse
The project requirements are as shown below. In the json data returned by the server, it must be processed by JS and check boxes must be added, and the check boxes must respond to JS operations.
In easyui's treegrid, no ready-made plug-in was found. I need to modify it myself. The code is as follows
tr> ">Node " th> < a href="javascript:alert('test');" class="easyui-linkbutton" iconCls="icon-add" plain="true">Control
The above is the entire HTML code. The advantage of easyui is that various attributes called by JS can be written directly in the attributes of the table, which is intuitive and easy to understand. Next, add the checkbox.
alert('Write the function and operation method to be called here'); }
Use checkbox with $(set_power_1 ") This method cannot respond. It is probably because of the processing by easyui.
Statement:
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