<tr> <th class="text-center">No</th> <th class="text-center">Project</th> <th class="text-center">category</th> <th class="text-center">Quantity</th> <th class="text-center">Price</th> <th class="text-center">Total Amount</th> <th class="text-center" style="background: whitesmoke"><a class="btn btn-info " role="button" id="add">+</a></th> </tr> </thead> <?php $td = "<td class=\"text - center\">"; $td_end = " </td>"; $my_project_id = Project::form_select_option('project_id', 'id', 'project_code'); $my_category_id = Category::form_select_option('category_id', 'id', 'category'); $my_quantity = Project::form_text('quantity', 'text', 1); $my_unit_price = Project::form_text('price', 'text', 1); $my_amount = Project::form_text('amount', 'text', 1); $my_form = $my_project_id . $my_category_id . $my_quantity . $my_unit_price . $my_amount; // $my_form_js="<script>var select=".$my_project_id."+".$my_category_id."+".$my_quantity."+".$my_unit_price."+".$my_amount."</script>"; // echo $my_form_js; ?> <tbody class="detail"> <tr> <td class="no">1</td> <!-- <td class="text-center">--><?php //echo Project::form_select_option('project_id','id','project_code'); ?> <!--</td>-->