Welcome Guest, Not a member yet? Register   Sign In
how to add condition in jquery.datatable.min template for codeigniter?
#1

[eluser]Unknown[/eluser]


i want to add a if condition and it will check if pubsihed value is 1 or 0 and then will show checkbox.

if published value is 1 then checkbox will be checked and if value is 0 then checkbox will be unchecked.


[removed]
<tr id="${lang_code},${catid}">
<td> ${serial}</td>
<td>
&lt;input type="checkbox" name="newsletter[]" id="checkbox" value="${lang_code},${catid},${published}"&gt;
</td>
<td>${catid}</td>
<td>${parent_id}</td>
<td>${lang_code}</td>
<td>${title}</td>
<td>${published} &lt;?= echo "my name is monir"; ?&gt;
&lt;input type="checkbox" name="published" id="published" value="${published}"&gt;

</td>
<td><a class="updateBtn" href="${updateLink}">&lt;?=lang('category_manager_edit_text');?&gt; </a>|<a class="translationBtn" href="${translationLink}">&lt;?=lang('category_manager_translation_text');?&gt;</a> | <a class="deleteBtn" href="${deleteLink}">&lt;?=lang('category_manager_delete_text');?&gt;</a></td>

&lt;?php $i++; ?&gt;


</tr>
[removed]
#2

[eluser]CroNiX[/eluser]
See form_checkbox(): http://ellislab.com/codeigniter/user-gui...elper.html




Theme © iAndrew 2016 - Forum software by © MyBB