1. How checkbox is related to clicks on radio buttons?
2. bindAsEventListener(this) isn't needed - bind(this) is enough.
3. Handler in Element#on retrieves clicked element as second argument,
no need to find it via var elm = e.findElement();
4. elm.getValue() for checkbox will
If I define an on click event for a given css selector did I disable or
trap the default click event? Reason I'm asking is I have a form and I
have wired up a click event for a given input type like this:
this.form.on('click', 'input[type=checkbox]' ,functionChkClicked);
Now my radio clicks
try 'change' event.
--
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 prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to
@mikhail, please elaborate
On Saturday, November 3, 2012 11:06:48 AM UTC-7, mikhail wrote:
try 'change' event.
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To view this discussion on the web visit
On Nov 3, 2012, at 1:51 PM, kstubs wrote:
If I define an on click event for a given css selector did I disable or trap
the default click event? Reason I'm asking is I have a form and I have wired
up a click event for a given input type like this:
this.form.on('click',
No errors in console. I assumed that defining the click event for a given
css selector would not have an effect on the normal click behavior.
Relevant code:
var chkClicks = this.__chkClicks.bindAsEventListener(this);
this.__z__chkClicksthis =