<div id="list"></div>
<script type="text/javascript">
jQuery(document).ready(function($) {
jQuery.post('index.php', 'list': jQuery('#list').html(), function(data, textStatus, xhr) {
/*optional stuff to do after success */
});
});
</script>
<?php
#index.php
echo $_POST['list']; // содержимое div-а с id = list
var myApp = new Framework7({
modalTitle: 'MyApp',
onPageInit: function (app, page) {
if (page.name === 'site_feedback') {
$$('form.ajax-submit').on('submitted', function (e) {
var xhr = e.detail.xhr;
var data = e.detail.data;
myApp.alert(data);
});
}
}
});