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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:31:14+00:00 2026-06-03T15:31:14+00:00

I understand that jquery needs a selector to work with it like a class=x

  • 0

I understand that jquery needs a selector to work with it like a class=”x” on all links with class=”x”.

But what I do not understand is why does jquery need a selector like #dialog that points to a div because the dialog is doing nothing with the div.

In my opinion a window/dialog should have nothing to do with a div because the dialog is over all other ui elements.

sample:

<div id="dialog"> what is that div for?</div>
$('#dialog').dialog({...
  • 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-03T15:31:17+00:00Added an answer on June 3, 2026 at 3:31 pm

    The dialog element is acting as a container. When you open the dialog, it displays the contents of that container. You can always dynamically generate the content and display that, but using a container allows you to define the content first (and say, hide it), before you want to display/render it.

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

Sidebar

Related Questions

I understand that jQuery is the preferred Javascript framework for Firefox extensions, but I'm
I have an XML that needs to be parsed using jQuery. I understand how
I understand that this has to be done with jQuery.noConflict() , but I can't
I understand that in jQuery, it's advantageous to be more specific when using selectors
I understand that CoCreateInstance finds the COM server for the given class id, creates
I understand that we need to create MXML file to define a view. Suppose
i have seen a jquery code that contains jQuery.noConflict method. do not know purpose
I know about jquery date-picker but cant understand how to implement it inside a
This may sound impossible but read on. I need to learn jQuery a little
I have a jQuery script that selects all IDs with 'Phone' in them. However,

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.