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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:31:29+00:00 2026-05-25T09:31:29+00:00

I have the following HTML for opening a fancybox window: <div class =centeral> <a

  • 0

I have the following HTML for opening a fancybox window:

<div class ="centeral">
 <a class='button2' href="#addnewmodal" id="addnewbutton"> Add New Dashboard Widget </a>
 <div id="ajaxmessage"></div>
 </div>
 <div class='addnewmodal' style="display: none;">
    <form id="adddashboarditemform" method="post" action="">
    <p id="form_error">All fields are required</p>
    <p>
        <label for="widgetname">Widget Name: </label>
        <input type="text" id="widgetname" name="widgetname" size="30" />
    </p>
    <p>
        <label for="rsssource">RSS Source: </label>
        <input type="text" id="rsssource" name="rsssource" size="80" />
    </p>
    <p>
        <label for="items">Items to Read: </label>
        <input type="text" id="items" name="items" size="3" />
    </p>
    <p>
        <input type="submit" value="addnewbuttonsubmit" />
    </p>
</form>
 </div>

and the following script inside the jquery ready function:

 $("#addnewbutton").fancybox();

For some reason when i click the link it opens a new window with the exact same contents of the parent window and does not show the form at all.

  • 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-25T09:31:29+00:00Added an answer on May 25, 2026 at 9:31 am

    You had your href referring to id addnewmodal but it is instead set as a class.
    You may also need to wrap your modal div in another div to set display to none instead of setting itself as display none.

    <div style="display:none">
      <div id="addnewmodal" class="addnewmodal">
        <form id="adddashboarditemform" method="post" action="">
        <p id="form_error">All fields are required</p>
        <p>
            <label for="widgetname">Widget Name: </label>
            <input type="text" id="widgetname" name="widgetname" size="30" />
        </p>
        <p>
            <label for="rsssource">RSS Source: </label>
            <input type="text" id="rsssource" name="rsssource" size="80" />
        </p>
        <p>
            <label for="items">Items to Read: </label>
            <input type="text" id="items" name="items" size="3" />
        </p>
        <p>
            <input type="submit" value="addnewbuttonsubmit" />
        </p>
        </form>
      </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following html <div id=menu> <ul class=horizMenu> <li id=active><a href=# id=current>About</a></li> <li><a
I have the following HTML code: <div onclick=window.open('http://example.com') > <p>1234 Main St, New York,
i have following HTML code:- <table class=results> <tr> <td> <a href=..>link</a><span>2nd Mar 2011</span><br>XYZ Consultancy
I have following html: <div id=note> <textarea id=textid class=textclass>Text</textarea> </div> How can I get
I have following HTML code: <section class=indent-1> <!-- Section 1 --> <section> <div>Some content</div>
I have following generrated HTML, and I want to add some CSS class to
I have the following HTML node structure: <div id=foo> <div id=bar></div> <div id=baz> <div
I have the following HTML <div> <img id=image1 src=http://valleywag.com/assets/resources/2008/03/BlackGoogleLogo.jpg alt=Why doesn't this float correcly?
I have the following html in my site: <link type=text/css href=/Styles/ui-lightness/jquery-ui-1.8.2.custom.css rel=Stylesheet /> <link
Suppose I have following html page. <html> <head> <link type=text/css rel=Stylesheet href=css/some.css /> </head>

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.