I pretty much want a checkbox after each (or some) of the nodes and perform an action. So I need to make a form. Is this possible? How do I do this? Thanks!
You can either insert the <input type="checkbox"> into the text of the tree items or modify the script to adding the checkboxes to the HTML generated by the tree. If you want us to do the job please submit a support ticket for the quote.
And what about a form.. like I want a submit button and reset button.. ? I added the checkboxes (through html) and when tree produces.. and you check boxes they don't get checked!.. the whole thing get selected.. here is where im running my tree: http://methylome.salk.edu/ttmenu/demo1/index2.html. Thanks
Well, I guess you'll need to take plan B. <a ..> around checkbox blocks the access to it. In some browsers it may be ok, but reliable solution calls for HTML change in the tree.js
Can you help me with that? How?
in line 122 of tree.js you can add add a cell to the table:
add attributes to the input field as needed for example
</td><td><input type="checkbox" name="cb' + this.n_id+ '"></td></tr></table>
will create the unique names for all checkboxes cb0, cb1 ... etc.