Quote:
$(this).load('<?php echo base_url().'Store/student' ;?>');
Load data from the server and place the returned HTML into the matched element.
What do you imagine the "matched element" is in your code?
(NB: You can use the debugger to find out!)
If you want to replace a specific element, then you need to match that element before calling
load
. For example, to replace the
studata
table with the content of the loaded document, use:
$("#studata").load('<?php echo base_url().'Store/student' ;?>');
If the page you're loading returns an entire HTML document, and you only want to load a specific part of it, pass a selector to the URL. For example, to replace the
studata
table on the current page with the
studata
table on the loaded page, use:
$("#studata").load('<?php echo base_url().'Store/student' ;?> #studata');