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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:16:32+00:00 2026-06-07T22:16:32+00:00

Here is a link to a working fiddle , and here is the live

  • 0

Here is a link to a working fiddle, and here is the live page where it doesn’t work.

Once you click “click”, it should check to see if domain has a value and if not it dresses up a div as an error box. The “click” will become a button and there will be an input text box but as there is no domain the result should just be open dialog. Works in fiddle but not live code:

<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.21/themes/base/jquery-ui.css" type="text/css" media="all" />

<div onclick="check_domain_input()">Click</div>

<div id="dialog" title="Attention!" style="display:none">
    Please enter a domain name to search for.
</div>

<script>
    function check_domain_input()
    {        
        $( "#dialog" ).dialog(); // Shows the new alert box.

        var domain_val = document.getElementsByName('domain');

        if (domain_val[0].value.length > 0)
        {
            return true;
        }

        $( "#dialog" ).dialog();

        return false;
    }
</script>
  • 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-07T22:16:35+00:00Added an answer on June 7, 2026 at 10:16 pm

    jQuery doesn’t come with jQueryUI by default.
    Include it.

    http://www.jqueryui.com

    EDIT: Comments below imply confusion.

    In your jsFiddle, underneath the jQuery library selection on the left-hand panel, you have ticked ‘jquery ui’.
    This is another javascript library, an extension of jQuery. You can download it at the above link.

    It’s got default UI-skinning, which is the CSS file you have already included.

    You will also need to include the jQueryUI script BELOW / AFTER jQuery.

    EDIT: Just add this line after <script src="js/jquery.js"></script>

    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>

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

Sidebar

Related Questions

In FF this border radius doesn't seem to want to work. Editable link here.
hi i have the following page: [here][link removed] the script i wrote is working
I am working through the example from https://blogs.oracle.com/arungupta/entry/java_ee_6_and_nosql . Here is a link to
Here is link where i got a code for web-page content fetching. But i
I asked a precursor to this question here: Click link in DIV and show
Here's the fiddle I'm working with: http://jsfiddle.net/Scd9b/ How can I delay the href function
Here's a link to the to my fiddle with the example: http://jsfiddle.net/stavros917/AaQpZ/ So I
Here...The code i have added to filter the anchor link is not working.. And
Alright, here is a link to the site I am working on. http://danberinger.com/preview.html I
Page link I am working on is http://www.whatcar.com/car-news/subaru-xv-review/260397 I am trying to automate 'clicking

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.