jQWidgets Forums

This topic contains 2 replies, has 1 voice, and was last updated by  marveen 11 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Get Search Result values #54643

    marveen
    Participant

    Hello !!

    First Thanks for this awesome library =) , i have a question.

    when i use the autocomplete, can i get all the values and de id of the Result box when i’m pressing enter o
    other event.

    Example: if i press “a key” , the result box shows 4 items , “anna”, “anabelle”, “amalicia”, “amaranta” .

    i need to caugth the 4 values , the item.label, ant item.value , to sent this data to a method thats
    returns me , info about it.

    these can bee archived?.. o maybee with other solution.

    thanks in advance.

    Get Search Result values #54649

    marveen
    Participant

    i got this.

    i use the css selector to get te values.

    SearchInput is the input (jqwidgets) , with source {label, id}

    ListaPLanes.push({ “strvalue”: strvalue, “idval”: idval + “|” + Color });

    jQuery(“#SearchInput”).jqxInput({ source: ListaPLanes });

    jQuery("#SearchInput").keydown(function (event) 
    {
                    var values = [];
                    if (event.which == 13) 
                    {
                        alert("keydown preseed");
                        jQuery("#SearchInput_popup li").each(function (index, value) {
                            // traer el resume
                            var DataValue = jQuery(value).attr('data-value');
                            var arrayOfStrings = DataValue.split("|");
                            Idval = arrayOfStrings[0];
                            StrColor = arrayOfStrings[1];
                            values.push(Idval);
                        });
                        alert(values);
                    }
                });
    
    
    Get Search Result values #54656

    marveen
    Participant

    thanks yourself =) thanks.. sorry my brain has been damaged many time agoo.. far far away

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.