When i click on element id #itest, I want to load a form with id #form from file modal.html into a jquery UI dialog() box. How can i do this. Should i have an empty div #result to load content in first.
Share
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.
Here is a barebones example of what you are trying to do:
You can create a div on the fly or use one which exists on the page, and populate it with the form from modal.html using
$.load. To return a particular subset of a page, just put the selector after the URL (as in the above example).