Hi,
Add the following code
$("#contact-popup").parent().appendTo($("form:first"));
after the following function definition:
$('ul.contacts li a.contact').click(function () {
}
The fragment of code should look like the following:
....
$('ul.contacts li a.contact').click(function () {
var contact = $(this).parent().find('span.data');
$('#phone').text(contact.attr('data-phone'));
if (contact.attr('data-fax') == '') {
$('#fax').parent().hide();
} else {
$('#fax').text(contact.attr('data-fax'));
$('#fax').parent().show();
}
$('#address').html(contact.attr('data-address'));
$('#email').text(contact.attr('data-email'));
$('#contact-form #location').val(contact.attr('data-id'));
$('#contact-popup .popup-title span').text(contact.attr('data-title'));
$("#contact-popup").dialog("open");
return false;
});
$("#contact-popup").parent().appendTo($("form:first"));
...
Hope this will help. :)
--
Chinmaya