This my script, when event is  on exit from onClick i got message
"class is a reserved identifier class="


CheckBoxSlider = Class.create({
        initialize: function (checkbox, block) {
                this.checkbox= $(checkbox);
                this.block=$(block);
                this.checkbox.observe("click", this.onClick.bind(this));
        },
        onClick: function (event) {
                if (this.checkbox.checked) {
                        this.block.show();
                }else {
                        this.block.hide();
                }
        }

});
window.onload= function() {
        tmp = new CheckBoxSlider("register-new-user","regiser-new-user-
fields");
        };

-- 
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.

Reply via email to