Re: how to say "inverse your value" (to a boolean)?
| From: | tedd | Date: | Tue, 11 Aug 2009 14:10:46 +0000 |
| Subject: | Re: how to say "inverse your value" (to a boolean)? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296629@lists.php.net to get a copy of this message | ||
At 2:29 PM +0100 8/11/09, Conor Mac Aoidh wrote:
And if javascript is turned off? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comIf I was going to do that then I would use jQuery: <script type="text/javascript"> $(document).ready(function(){quick Q: I have this inside a foreach{} that I want to alternate between on and off so I can alternate the background-color of my <tr>'s. $tableRowBGcolorBoolCounter != $tableRowBGcolorBoolCounter; //-boolean on and off I am looking thru' docs and books, but can't remember (nor find now) in PHP how to say "inverse your value" (to a boolean). ? TIA! -G$("table tr:even").addClass("even");; $("table tr:odd").addClass("odd");;}); </script> And yes I know that this is a PHP mailing list lol -- Conor