Permalink
Browse files

fixed bug with option groups with spaces in the name

  • Loading branch information...
1 parent a5cbde5 commit 559824825e4d965b7bc03bcf5af336041584e6b7 @maurozadu maurozadu committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 webroot/js/jquery.jDoubleSelect.js
@@ -42,7 +42,7 @@
$("#"+name1).change(function(){
// REMOVE OLD ELEMENT, ADD NEW SELECT, BIND CHANGE EVENT AND TRIGGER IT
$("#"+name2).remove();
- el.next().next().after("<select id='"+name2+"' >"+el.find("optgroup[label="+$(this).val()+"]").html()+"</select>");
+ el.next().next().after("<select id='"+name2+"' >"+el.find("optgroup[label='"+$(this).val()+"']").html()+"</select>");
//el.val($("#"+name2).val());
$("#"+name2).trigger("change");
});

0 comments on commit 5598248

Please sign in to comment.