Vanilla 2
Discussions
Activity
Sign In
prettyCheckboxes support
click handler fired twice
bart
December 2009
I have following issue:
$(document).ready(function() {
$('input[type=checkbox],input[type=radio]').prettyCheckboxes();
$('#compareWrapper input[type=checkbox]').click(function() {
var guid = $(this).attr('value');
if ($(this).is(':checked')) {
AssertMethod(guid);
} else {
AssertMethod(guid);
}
});
});
For some reason the onclick is firing twice. (first time checked = the state from before click)
Any ideas?
Bart
sparky672
January 2011
Yes, you can see this on the demo page too.
When I click the first checkbox I get the alert box telling me that it fired, I click OK, then I get a second alert box telling me the same thing.
In Safari so far- I have not checked this on other browsers.
franckt
April 2011
I've got the same behaviour and I have to find how to change this... Anyone since January did find a solution ? Sincerely
sparky672
April 2011
I gave up. This other plugin will allow you to draw your own checkbox and radio button sprites. It's a very simple process that uses the entire "label" area as a trigger to change the image...
http://www.filamentgroup.com/lab/accessible_custom_designed_checkbox_radio_button_inputs_styled_css_jquery/
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
2,644
General
305
Showoff your stuff!
8
prettyComments support
7
prettySociable support
43
WP-prettyphoto support
179
prettyCheckboxes support
40
prettyGallery support
74
prettyMobile support
34
prettyPhoto support
1,937
prettyLoader support
12
INK - Support forum
5
Powered by Vanilla