how to disable button when images are loaded? - 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: how to disable button when images are loaded? (/showthread.php?tid=71616) |
how to disable button when images are loaded? - kvanaraj - 09-05-2018 I want to disable my upload button.once images uploaded cannot be reload the images. Button ****** <td class="text-center"> <button class="btn btn-sm btn-danger deleteUser" data-toggle="modal" data-target="#myModal" onclick="edit_book(<?php echo $row['markid'];?>)"><i class="fa fa-upload"></i></button> </td> Image ******* <td> <img src="<?php echo base_url()."assets/images/".$row['file_name'] ?>" alt="" class="img-thumbnail" width="100%" height="50px"/> </td> RE: how to disable button when images are loaded? - InsiteFX - 09-05-2018 Add this to your button and then switch the disable state with JavaScript toggle button disabled="disabled" RE: how to disable button when images are loaded? - kvanaraj - 09-05-2018 (09-05-2018, 03:08 AM)InsiteFX Wrote: Add this to your button and then switch the disable state with JavaScript toggle button I know using the based on the input item that should be performed. but its check with the database. I also use one textbox item to get the id, but based on id the button not disabled. RE: how to disable button when images are loaded? - InsiteFX - 09-05-2018 You really need to start using Google Search! But here is a link on how to do it. How to disable/enable an element with jQuery or Javascript a dot . is a class and a # is an id |