Hello,
I am pretty new to Jquery ( and to JavaScript at all, in fact), but I think I am beginning to grasp the general idea, at least as far as the UI part is concerned. I hope you can help me to get from crawling to running I guess... anyways...
I am trying to build a UI for fields/values selection. In principle the users have to assemble a list of fields for the query and then possible values for each field ( it brews down to a sql select statement, something like "select... where field1 in ( f1v1,f1v2,f1v3...) and field2 in ( f2v1,f2v2...) , etc.)
I was able to use the code for the sopping cart from the JQuery examples, with some changes, to come pretty close to what I want, so the UI is actually based on an accordion of the field names with draggable items for the possible values in each "fold" of the accorfdion, and a droppable widget that values can be drugged into. I need some help tough to actually get it working.
So my first question is, how do I stick the content of the droppable into an HTML form ? I tried to figure out how to get the value of the droppable, into the code that construct the input html tag but so far with no luck.
Secondly, Since the user is actually selecting values from specific "folds" of the accordion, I would like to append the field name ( the accordion's "fold" name" to the values, so that the droppable will actually contain items with "field=value". Can you help me figure out how to do that?
Thanks,
Oren Shani