Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8534179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:08:04+00:00 2026-06-11T10:08:04+00:00

I have a dijit Select widget and need to do something when the user

  • 0

I have a dijit Select widget and need to do something when the user clicks one of the dropdown items. Meaning I need access to the clicked item, to retrive some information, and call one of my own functions.

I’ve tested to attach an onChange on the select and I can get the text value selected fine. But I need the object and not the value. The object holds more values in a data-info-attribute.

Basically what I’m trying to achieve is to show one value in the list but send along more values to populate other fields when selected.

Background: This is a typeahead field populated thru AJAX by a server function. There IS a store attached but it’s empty (as far as I can tell) so I’ve been unsuccessful trying with: .store.fetchItemByIdentity – always returns nothing.

ta.store.fetchItemByIdentity({
    identity: ta.getValue(),
    onItem: function(item, request){
        console.log(item),
        console.log(request)
    }
})

I expect the log to show item- and request-object, but they’re both undefined.
ta.getValue() get’s the selected value as expected.

What’s the best way to achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:08:06+00:00Added an answer on June 11, 2026 at 10:08 am

    Have a look at my answer to onChange not sufficient to trigger query from Dojo Combobox and also to jsFiddle mentioned there. I added code specific for your needs there:

    select.dropDown.on("itemClick", function(dijit, event) {
        var node = dijit.domNode;
        console.log(domAttr.get(node, "data-info-attribute"));
        // or
        console.log(node.dataset.infoAttribute);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dijit.form.Select widget. It's tied to a data store, if that matters.
i have created a tree select that shows a dijit.tree in the dropdown. Now
I'm having some issues with dijit.form.Select items. In a page i have two of
I have a dojo (dijit) select dropdown that calls a js function onChange. I
I have a dynamic dojo form in which I have a dijit.form.Select whose selected
I have developed a custom dijit Templated Widget. I have to do some DOM
I have a programmatically generated dijit.form.Select. Unlike most other widgets, the Selects do not
I have the following source code for a select: <select id=_conteneurNum_id name=conteneurNum data-dojo-type=dijit.form.FilteringSelect> <option
I have encountered a strange behaviour using dijit.form.select inside a tooltip-dialog. Here's a shortened
If I have a declared select <select id=sel1 dojoType=dijit.form.Select >... And I add my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.