I'm loading a view, extra.php
, into #extra
div via jquery command:
$('#extra').html("<?php $this->load->view('extra'); ?>");
extra.php
is a long file, and jquery.html()
loads only a single line of code
for example, it loads fine:
<table><tr></tr><tr></tr><tr></tr></table>
but it doesn't load at all:
<table>
<tr>....</tr>
<tr>....</tr>
<tr>....</tr>
</table>
How to fix it?