RE: [PHP-DB] Re: Subject: Javascript Question (Was PHP / Javascri pt question)
| From: | Ford, Mike | Date: | Tue, 16 Nov 2004 16:20:33 +0000 |
| Subject: | RE: [PHP-DB] Re: Subject: Javascript Question (Was PHP / Javascri pt question) | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37295@lists.php.net to get a copy of this message | ||
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
On 16 November 2004 15:12, Neil Smith wrote:
> That
>
> if (df[i].checked=true) {
>
> should of course read
>
> if (df[i].checked==true) {
No it shouldn't -- it should read
if (df[i].checked) {
More efficient, more readable, and, more important, The Right Way (TM)! ;)
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211