pkpfrench / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

Events in dropdown-check-list #259

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the last event fired in dropdown-check-list.

I want to display a selected items in another text box while loading the page.

Thanks,
M.Mahesh

Original issue reported on code.google.com by maheswar...@gmail.com on 24 Jul 2012 at 12:55

GoogleCodeExporter commented 9 years ago
Sorry, but I am not quite sure what you are asking for.

DDCL does not support a programming contract for firing any particular events 
that you can rely on.  Interactions with DDCL are via its initialization 
options, and selected callback functions.

Can you describe what you are looking for in terms of an enhancement request?

Original comment by womohun...@ittrium.com on 24 Jul 2012 at 2:23

GoogleCodeExporter commented 9 years ago
Hi,,,

   In ddcl the selected items text is displaying in span with class 
"ui-dropdownchecklist-text".But i want to capture the text and display in 
other control (text box with id "txtusers").

Thanks,
M.Mahesh

Original comment by maheswar...@gmail.com on 24 Jul 2012 at 2:34

GoogleCodeExporter commented 9 years ago
There is an "onComplete" event which will help you in finding selected items in 
a ddcl.

onComplete: function(selector) {
        var values = "";
        for( i=0; i < selector.options.length; i++ ) {
            if (selector.options[i].selected && (selector.options[i].value != "")) {
                if ( values != "" ) values += ";";
                values += selector.options[i].value;
            }
        }
        alert( values );
    } 

Original comment by bsmetri....@gmail.com on 26 Dec 2012 at 9:11