I am newbie in Code Igniter… I have an edit button in front of every row. Now, what I want is that after I click on the edit button, a pop up/model box/lightbox should appear without the page refreshing, and all the fields should appear in that box.
<?php foreach($records as $row){?>
<tr>
<td class = "click"><?php echo $row->name; ?> </td>
<script type="text/javascript">
$(document).ready(function() {
$('.click').editable('<?php echo site_url('categoryController/editCategory');?>',
{
});
});
include the
idandnameof the element, like:then in your js:
then in your controller you retrieve the value with:
for more info see the jeditable website.