I want to display a form in a Div, in alert box.
How would i do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
If you meant you want to override
alert(...)with some<div>you have…You can NOT…
If you want to display
<div>as if it was an alert box:Read this Excellent article, that offers an easy way of doing it with a
jQueryplugin:LIVE DEMO
Update:(based on the comment)
O.K. so you want “a form in a div and I want to display that form in alert box”
It’s can be done with jQuery UI library, it has the Dialog widget.
Check it out here