Note that there are some explanatory texts on larger screens.

plurals
  1. POget old values in a form in Colorbox before update
    primarykey
    data
    text
    <p>i am new bie in code igniter .i have a data showing in tables in my view page .. in each row there is an edit button .. i want that if i clicks on the edit link a colorbox is gonna pop up with a form in which the form is filled with old values and he then able to update it.. i have done everything in controller and model but i dont know how to use colorbox .. i visit their site also but i didnt understand much .. this is what i am doing here is the form where user add the data </p> <pre><code>form name and id is "form" echo form_open('employesController/addEmployes') form_input();// form_input();// form_button() form_close(); this is the table where data is showing &lt;td&gt;&lt;?php echo $row-&gt;emp_name ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $row-&gt;description ?&gt;&lt;/td&gt; &lt;td&gt; &lt;a href = "employesController/editEmploye/&lt;?php echo $row-&gt;emp_id ?&gt;" id = "btn"&gt; Edit </code></pre> <p>my controller</p> <pre><code> function editEmploye($id){ $this-&gt;load-&gt;model('employesModel'); $data['result'] = $this-&gt;employesModel-&gt;getEditEmploye($id); echo json_encode($data); } </code></pre> <p>my modal</p> <pre><code> function getEditEmploye($id) { return $this-&gt;db-&gt;where('emp_id',$id)-&gt;get('employees')-&gt;row(); } </code></pre> <p>and i thing my jquery function for popup modal is going to be like that ..</p> <pre><code> $(document).ready(function(){ $("#btn").click(function(){ var $form = $("#form"); $("#").colorbox({inline:true, href:$form}); }); }); </code></pre> <p>please tell me how can i get selected row values in a form in Colorbox</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload