• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unable to open modal pop up window

#1
i want to open modal window using php codeigniter. but the error occured.
Code:
<td>

<button class="btn btn-warning" onclick="edit_book(<?php echo $book['appno'];?>)"><i class="glyphicon glyphicon-pencil"></i></button> </td>
Uncaught ReferenceError: app005 is not defined

   at HTMLButtonElement.onclick (v_dashboard:190
Reply

#2
@kvanaraj,

The error is straight forward. What value is $book['appno'] returning? Does your modal id have the same name?
Reply

#3
(03-16-2019, 07:03 PM)php_rocs Wrote: @kvanaraj,

The error is straight forward.  What value is $book['appno'] returning?  Does your modal id have the same name?

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>
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.