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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:28:45+00:00 2026-05-22T20:28:45+00:00

How to get a DOM using dojo by the tag name? I have a

  • 0

How to get a DOM using dojo by the tag name?

I have a html code like this :

<select name="limit">
    <option value="10">10</option>
    <option value="25">25</option>
</select>

in jQuery framework, it will be:

var limit = $("select[name=limit]");

…but in Dojo framework, what must I do ?

Should I use dojo.query("select[name=limit]") ?

  • 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-05-22T20:28:46+00:00Added an answer on May 22, 2026 at 8:28 pm

    Yes, dojo.query("select[name=limit]") is correct, but remember that in dojo, it returns an array (even if there is only one match in the DOM). So to get the first (and possibly only) match, you need select the first element:

    var limit = dojo.query("select[name=limit]")[0];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using DOM to get content of div tag but inner html part
With the code below I can get elements of an html table using DOM's
Using HTML 5 together with the DOM is there a way to get the
I'm using PHP/Zend to load html into a DOM, and then I get a
I'm trying to scan all stylesheets within DOM using following each() function $(link).each(function(){ $.get($(this).attr('href'),
I am using PHP's DOM object to create HTML pages for my website. This
<link rel='canonical' href='http://test.com/asdfsdf/sdf/' /> I need to get the canonical href value using Dom.
I'm using simple_html_dom.php to get all images from an url (like pinterest does) if($_POST['submit'])
Using jQuery I can easily get the number of DOM elements used by a
While including the simple HTML DOM library, I get the warnings: Warning: file_get_contents() [function.file-get-contents]:

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.