?
Solved

Form In A Div

Posted on 2014-11-11
2
Medium Priority
?
213 Views
Last Modified: 2014-11-13
I have a pop-up div.  I need to put a form in that div.  Where do I do this?
The Javascript.
 $(document).ready(function() {
        $("#thumbnail img").click(function(e){
 
            $("#background").css({"opacity" : "0.7"})
                            .fadeIn("slow");
 
            $("#large").html ("hello world")
                       .center()
                       .fadeIn("slow");
 
            return false;
        });

Open in new window


The Div
<div id="large"></div>

Open in new window


I tired this
<div id="large"><form><input name="Name" type="text" /></form>

Open in new window

It didn't work.
0
Comment
Question by:DS928
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 2000 total points
ID: 40436740
hi

Try this:

$('body').append('<form id="myForm"></form>');
$('#myForm').html ("hello world ...").center().fadeIn("slow");

Open in new window

0
 

Author Comment

by:DS928
ID: 40437553
Hello.  I tried it and it did not work.  Also the white box (Div) disappeared as well.
$(document).ready(function() {
        $("#thumbnail img").click(function(e){
 
            $("#background").css({"opacity" : "0.7"})
                         .fadeIn("slow");
 			$('body').append('<form id="myForm"></form>');
			$('#myForm').html ("hello world ...")
						.center()
						.fadeIn("slow");
            /*$("#large").html ("hello world")
                       .center()
                       .fadeIn("slow");*/
 
            return false;
        });

Open in new window


<div id="large">
   <form name="myForm">
   <input name="Name" type="text" />
   </form>
   </div>

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question