Get checked Ids of Jstree in form submit

Everyone, who worked with Jstree’s may face to this question: How to get the checked Ids of Jstree in form submit? here is the solution: <script type=”text/javascript> function submitMe() { var checked_ids = []; $(‘#your-tree-id’).jstree(‘get_checked’,null,true).each(function(){ checked_ids.push(; }); //setting to hidden field document.getElementById(‘jsfields’).value = checked_ids.join(“,”); } </script> <input type=”hidden” name=”jsfields” id=”jsfields” value=”” />

Redirect users to custom page with notification

In form registrations, and form operations which consists insert, update and delete actions; we often need to redirect user after a successful/unsuccessful operation(s). To inform user about the fail or success of operations, you can set flash messages, which you can set manual messages for any operations you want. Flash messages automatically destroy themselves after …