![]() |
added these lines in below code but it is showing "checked" first time going to Edit, then on every attempt it is showing it unchecked no matter it is "Y"
please help. if($('#product_available').val() == 'Y') { $('#product_available').attr('checked', true); }else{ $('#product_available').attr('checked', false); } PHP Code: // to fill data in Edit mode regards Newbie here in CodeIgniter World !! Please appologize if any nonsense from me.
environment: Windows 10, XAMPP 3.3.0, VS Code, SQLyog Community Ed.
|
Messages In This Thread |
checkbox value for Edit not showing as checkbox checked - by Ahmed Haroon - 08-04-2022, 01:03 AM
RE: checkbox value for Edit not showing as checkbox checked - by Ahmed Haroon - 08-04-2022, 05:57 AM
RE: checkbox value for Edit not showing as checkbox checked - by SubrataJ - 08-04-2022, 09:19 AM
RE: checkbox value for Edit not showing as checkbox checked - by Ahmed Haroon - 08-04-2022, 09:34 PM
RE: checkbox value for Edit not showing as checkbox checked - by InsiteFX - 08-05-2022, 12:29 AM
RE: checkbox value for Edit not showing as checkbox checked - by Ahmed Haroon - 08-05-2022, 03:01 AM
RE: checkbox value for Edit not showing as checkbox checked - by SubrataJ - 08-05-2022, 08:59 AM
RE: checkbox value for Edit not showing as checkbox checked - by Ahmed Haroon - 08-08-2022, 12:47 AM
|