![]() |
unable to open modal pop up window - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: unable to open modal pop up window (/showthread.php?tid=73080) |
unable to open modal pop up window - kvanaraj - 03-16-2019 i want to open modal window using php codeigniter. but the error occured. Code: <td> at HTMLButtonElement.onclick (v_dashboard:190 RE: unable to open modal pop up window - php_rocs - 03-16-2019 @kvanaraj, The error is straight forward. What value is $book['appno'] returning? Does your modal id have the same name? RE: unable to open modal pop up window - kvanaraj - 03-17-2019 (03-16-2019, 06:03 PM)php_rocs Wrote: @kvanaraj, foreach($books as $book){ ?> <tr> <?php echo '<td align="center">'.$sno++.'</td>';?> <td><?php echo $book['dai'];?></td> <td><?php echo $book['appno'];?></td> <td> <button class="btn btn-warning" onclick="edit_book(<?php echo $book['appno'];?>)"><i class="glyphicon glyphicon-pencil"></i></button> </td> RE: unable to open modal pop up window - Wouter60 - 03-19-2019 What does the edit_book() javascript function look like in your code? RE: unable to open modal pop up window - includebeer - 03-19-2019 (03-19-2019, 02:49 PM)Wouter60 Wrote: What does the edit_book() javascript function look like in your code? Exactly, this is a JavaScript question. It has nothing to do with CodeIgniter or PHP. |