Thanks Douglas My way works fine...
That is not the issue... the issue is with change or click Thanks Alex Mcauley http://www.thevacancymarket.com ----- Original Message ----- From: "Douglas" <[email protected]> To: <[email protected]> Sent: Thursday, August 13, 2009 3:35 PM Subject: [Proto-Scripty] Re: Observing a checkbox checked === true is wrong you should check for ('checked' == $(input).checked || true == $(input).checked) ps: untested On Thu, Aug 13, 2009 at 10:53 AM, Jeztah<[email protected]> wrote: > > What is the correct Cross browser way to observe a checkbox being > checked or not.... > > I am using > > $('hidenonlive').observe('change',function() { > > if($('hidenonlive').checked!==true) { > alert('Showing'); > > } else { > $$('.dead-vacancy').invoke('hide'); > > } > > }); > > But it doesnt seem to want to work in IE8 and it doesnt throw an > error.... SHoudl i just use "click" instead? > > Thanks in advance > > ALex > > > -- Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
