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 8887133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:43:54+00:00 2026-06-14T21:43:54+00:00

I am trying out dojotoolkit 1.8 and cant figure out how to hook up

  • 0

I am trying out dojotoolkit 1.8 and cant figure out how to hook up an onchange event for a dojo/form/select

Nothing happens with this

require(["dojo/dom","dojo/on"], function(dom,on){
   on(dom.byId("myselect"),"change",function (evt){
         alert("myselect_event");

});

If instead, the following hook into click works:

on(dom.byId("myselect"),"click",function (evt){
  • but i want to capture the value after user clicks and changes

I am sure it is simpler than going back to Plain ol javascript onChange…

Thx

  • 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-14T21:43:55+00:00Added an answer on June 14, 2026 at 9:43 pm

    You could try something like this:

        var select = dijit.byId('myselect');
    
        select.on('change', function(evt) {
            alert('myselect_event');
        });
    

    I’ve seen this in the reference-guide multiple times, eg in the dijit/form/select’ s reference-guide at ‘A Select Fed By A Store’.

    Maybe it even returnes the handle, i haven’t looked this up so far. But i guess it should work.

    EDIT:

    Considering @phusick’s comment, i want to add, that you could also simply change the "change" to "onChange" or the dom to dijit within calling on(...)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying out the tutorial on this link to create a form :
I was testing/trying out this Perl one-liner , and I'm trying to figure out
I'm trying to work out how to load a module using example http://dojotoolkit.org/reference-guide/dojo/registerModulePath.html I
been trying out this for quite some time but I'm still unable to built
Trying out Linq for NHibernate and first noticed this: var list1 = (from ut
So I'm trying out JSON for the first time. I have this Twitter API
I was trying out the following example given in this tutorial . What I
Trying out celery for django I ran into a problem with @task decorator. This
Trying out this Copy Website feature in Visual Studio. On my remote site the
Just trying out this IDE but it already looks better than NetBeans in terms

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.