Switch var from TRUE to FALSE (jQuery) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Switch var from TRUE to FALSE (jQuery) (/showthread.php?tid=29276) |
Switch var from TRUE to FALSE (jQuery) - El Forum - 04-04-2010 [eluser]Fielder[/eluser] If I have a jquery variable as such, how can I easily flip it. Code: var print = true; Code: if (print == true) Switch var from TRUE to FALSE (jQuery) - El Forum - 04-04-2010 [eluser]BilliamTheSecond[/eluser] print = !print; |