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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:50:32+00:00 2026-06-04T10:50:32+00:00

I’m working my way through some of the tutorials on the jQuery website, and

  • 0

I’m working my way through some of the tutorials on the jQuery website, and I’m currently working on the ‘Modal Confirmation Dialog’.

I’ve put together this page, but I can’t seem to get the page to load without receiving the following error:

Object doesn't support this property or method Line: 16, which is this line in my code: $( "#dialog:ui-dialog" ).dialog( "destroy" );.

I’m really not sure why I’m receiving this, I’ve been through the source files and I think I have the links to the correct js and css files.

I know to most this may be a very basic and beginner error, but I’m beginner with jQuery, and I just wondered whether someone could perhaps have a look at this and let me know where I’ve gone wrong.

  • 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-04T10:50:34+00:00Added an answer on June 4, 2026 at 10:50 am

    Just simply remove this line…

    $("#dialog-confirm" ).dialog( "destroy" );
    

    or if you want that to work, put that line below of the dialog init… and change it to something like that..

    (but it will surely remove the dialog functionality so simple remove it)

    you don’t need to put :ui-dialog there…
    you just had a selection error..

    if its selected using id use #
    and when you select using class use .

    example

    if id

    <div id="dialog">a dialog msg</div>
    <script>
    $("#dialog").dialog("destroy");
    </script>
    

    if class

    <div class="dialog">a dialog msg/div>
    <script>
    $(".dialog").dialog("destroy");
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am trying to loop through a bunch of documents I have to put
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,

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.