Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

=1 or =yes

are both valid?

9:11 pm on Jan 14, 2004 (gmt 0)

Full Member

10+ Year Member

joined:July 6, 2003
votes: 0

I use the following form on my js :


I have seen others use either all yes/no or combinations of 1/0 and yes/no ie :


Which form is valid 1/0,yes/no or combinations?

9:46 pm on Jan 14, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
votes: 0

They both work in IE, NN4, and Gecko browsers. But for consistency, you really ought to pick one or the other; it will make debugging easier.