Closed eliaso closed 8 years ago
Is this jQuery 1.11.3 or jQuery UI 1.11.3?
Also, which version of the multiselect are you using?
Thanks so much Michael, I am using:
jQuery 1.11.3 (attached)
jQuery MultiSelect UI Widget 1.14pre (attached)
also I’m using jqueryui 1.8 from http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js
Please let me know,
Thanks!,
Eli
From: Michael [mailto:notifications@github.com] Sent: Wednesday, March 23, 2016 5:52 PM To: ehynds/jquery-ui-multiselect-widget jquery-ui-multiselect-widget@noreply.github.com Cc: eliaso eliyahuo@gmail.com Subject: Re: [jquery-ui-multiselect-widget] Problem with jQuery v1.11.3 (#637)
Is this jQuery 1.11.3 or jQuery UI 1.11.3?
Also, which version of the multiselect are you using?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ehynds/jquery-ui-multiselect-widget/issues/637#issuecomment-200557089 https://github.com/notifications/beacon/AICLH4KXvZTskdh87Y_jUX_DrQTiZV4_ks5pwbXrgaJpZM4H3fD1.gif
Sorry Michael, the problem is not compatibility with jquery, what is causing the Multiselect not to work is this script that has the template I’m using (form Metronic) :
// Handles custom checkboxes & radios using jQuery Uniform plugin
var handleUniform = function () {
Here I need to exit if it is a checkbox belonging to the multiselect, how can I do in javascript something like if the name of the checkbox start with “multiselect” return;
if (!$().uniform) {
return;
}
var test = $("input[type=checkbox]:not(.toggle, .md-check, .md-radiobtn, .make-switch, .icheck), input[type=radio]:not(.toggle, .md-check, .md-radiobtn, .star, .make-switch, .icheck)");
if (test.size() > 0) {
test.each(function() {
if ($(this).parents(".checker").size() === 0) {
$(this).show();
$(this).uniform();
}
});
}
};
Can you tell me?
Thanks so so much!,
Eli
From: Michael [mailto:notifications@github.com] Sent: Wednesday, March 23, 2016 5:52 PM To: ehynds/jquery-ui-multiselect-widget jquery-ui-multiselect-widget@noreply.github.com Cc: eliaso eliyahuo@gmail.com Subject: Re: [jquery-ui-multiselect-widget] Problem with jQuery v1.11.3 (#637)
Is this jQuery 1.11.3 or jQuery UI 1.11.3?
Also, which version of the multiselect are you using?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ehynds/jquery-ui-multiselect-widget/issues/637#issuecomment-200557089 https://github.com/notifications/beacon/AICLH4KXvZTskdh87Y_jUX_DrQTiZV4_ks5pwbXrgaJpZM4H3fD1.gif
No problem, just makes my life easier! On Mar 23, 2016 5:40 PM, "eliaso" notifications@github.com wrote:
Sorry Michael, the problem is not compatibility with jquery, what is causing the Multiselect not to work is this script that has the template I’m using (form Metronic) :
// Handles custom checkboxes & radios using jQuery Uniform plugin
var handleUniform = function () {
Here I need to exit if it is a checkbox belonging to the multiselect, how can I do in javascript something like if the name of the checkbox start with “multiselect” return;
if (!$().uniform) {
return;
}
var test = $("input[type=checkbox]:not(.toggle, .md-check, .md-radiobtn, .make-switch, .icheck), input[type=radio]:not(.toggle, .md-check, .md-radiobtn, .star, .make-switch, .icheck)");
if (test.size() > 0) {
test.each(function() {
if ($(this).parents(".checker").size() === 0) {
$(this).show();
$(this).uniform();
}
});
}
};
Can you tell me?
Thanks so so much!,
Eli
From: Michael [mailto:notifications@github.com] Sent: Wednesday, March 23, 2016 5:52 PM To: ehynds/jquery-ui-multiselect-widget < jquery-ui-multiselect-widget@noreply.github.com> Cc: eliaso eliyahuo@gmail.com Subject: Re: [jquery-ui-multiselect-widget] Problem with jQuery v1.11.3 (#637)
Is this jQuery 1.11.3 or jQuery UI 1.11.3?
Also, which version of the multiselect are you using?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub < https://github.com/ehynds/jquery-ui-multiselect-widget/issues/637#issuecomment-200557089> < https://github.com/notifications/beacon/AICLH4KXvZTskdh87Y_jUX_DrQTiZV4_ks5pwbXrgaJpZM4H3fD1.gif>
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ehynds/jquery-ui-multiselect-widget/issues/637#issuecomment-200571572
Sorry, I didn't see the rest of this message when it came to my e-mail.
To get the name of an element with jQuery you can use $(selector).prop("name") to give you the name of the element. There are also selectors in pure javascript that can do this. Take a look at: http://www.w3schools.com/cssref/sel_attr_begin.asp You would use name instead of class in this case.
When using jQuery v1.11.3, if you click CheckAll the checkboxes are not refreshed meaning that the X are not drawn. However I see that the message changes to 12 Selected (there are 12 menu items), so it is processing all internally but it's not "drawing" the X, so it looks like the options are not selected. The same thing happens with the Uncheck all,
Also when I select 2 items, the names of the items are not drawn I can only see the "," that used to be between the names.