James Ferguson
James Ferguson

Reputation: 71

Adding records to existing form page from dialogue window in Jquery Mobile

I have a form on my page that has some standard type questions, I then have a section where the user clicks a dialogue box to search for contacts and when chosen the contact gets added to the main form window. The user can do this as many times as they want.

Has anyone figured a way in JQM to make it inject the data from the dialogue into a div or li on the parent page?

Thanks James F.

Upvotes: 0

Views: 37

Answers (1)

Leon
Leon

Reputation: 4532

Is the page you are adding to known? Or the div / li you want to use? If so, you could simply hardcode a selector:

$("#div_up_update").append("user selection");

You could also just access the page and an element in there:

$("#page_id #div").append("user selection");

Let me know if you need more samples, after you provide a snippet of your code...

Hope this helps

Upvotes: 0

Related Questions