On Aug 13, 2:53 pm, 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?
>
You are tabbing to a different field after clicking, yes?
The definition of 'onChange' in the HTML spec (http://www.w3.org/TR/
html401/interact/scripts.html#adef-onchange) is "The onchange event
occurs when a control loses the input focus and its value has been
modified since gaining focus".
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---