I am interrogating three databases and want to show my columns in three clickable lists. I want the user to choose multiple columns from these lists, and then pressing a button, they will pass a function to select only the selected columns and the list / tables.
I find some code online that does this with the form. Is there any way that forms without form? To use JLIS with Java and I have very little experience with Javascript.
The code that I'm trying to do (like with a list) for something like:
Edit: Just got to know about javascript listboxes. I think that I am going to use them, it seems that it is inevitable to use forms while making lists. There is a really simple JavaScript library to do this (for example, and user interaction in general for). For example, if you want to select the second column of a table and want to store the data of cells in an array, then this simple code will do this (I'm notorious for making mistakes, so Correct me if not it): Now, there are values in the second column of the table in You are talking about plain 'hal HTML To get the selected values, this code should work: If your users do not understand how the item is being checked, then typing your own checkable list box is really easy Here's my example:.
var element = []; $ ('# Id_of_your_table tr td: eq (1)'). Each (function () {elements.push ($ (this) .html ());});
element .
& lt; Select & gt; , I think paste it into an HTML document to see what this means.
& lt; Select ID = "my_listbox" multiple = "yes" size = "6" & gt; & Lt; Options & gt; Foo 1 & lt; / Options & gt; & Lt; Options & gt; Phu 2 & lt; / Options & gt; & Lt; Options & gt; Phu 3 & lt; / Options & gt; & Lt; Options & gt; Foo 4 & lt; / Options & gt; & Lt; Options & gt; Foo 5 & lt; / Options & gt; & Lt; Options & gt; Phu 6 & lt; / Options & gt; & Lt; / Select & gt;
var value = []; $ ('# My_listbox: selected') Each (function (i, selected) {textvalues [i] = $ (selected) .text ();});
Comments
Post a Comment