enable / disable button based on record inserted - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1) +--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3) +--- Thread: enable / disable button based on record inserted (/showthread.php?tid=71742) |
enable / disable button based on record inserted - kvanaraj - 09-18-2018 I want to insert images into my db. once images uploaded view button, delete button to be enabled. i try with anchor but Code: <td align="center"> Code: <td align="center"> how to solve this? RE: enable / disable button based on record inserted - InsiteFX - 09-18-2018 Code: DOM: Try one of those RE: enable / disable button based on record inserted - Wouter60 - 09-18-2018 First of all, your <a> tags aren't closed with </a>. Question: Do you use AJAX to upload the images? RE: enable / disable button based on record inserted - kvanaraj - 09-18-2018 (09-18-2018, 12:41 PM)Wouter60 Wrote: First of all, your <a> tags aren't closed with </a>. yes i am using a ajax in a pop up window. RE: enable / disable button based on record inserted - Wouter60 - 09-19-2018 Quote:yes i am using a ajax in a pop up window. Make sure the buttons are disabled by default. In the success part of your AJAX routine, enable the buttons. If you give both buttons the same css class, you can enable them in jQuery by removing the disabled property: Code: $('.image-action').prop('disabled', false); //this will enable all elements with the "image-action" class. |