waseem02 / jquery-asmselect

Automatically exported from code.google.com/p/jquery-asmselect
0 stars 0 forks source link

not create surrounding div container #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I would like to create new select in the same div container as origin
select. Not in newly created div.

What is the expected output? What do you see instead?
Sometimes is not possible to "replace" origin select due to used css. newly
created select is "shifted".

What version of the product are you using? On what operating system?
1.0.4 beta

Please provide any additional information below.

Original issue reported on code.google.com by vladimir...@rwe.cz on 6 Jan 2009 at 3:26

GoogleCodeExporter commented 8 years ago
Hi,
I tryed this:
a) append new param
 var options = {
...
   useContainer: true   // Use surrounding container (containerClass)?
};

b) modified init function
this row:
   $container = $("<div></div>")
         .addClass(options.containerClass)
         .attr('id', options.containerClass + index);
replaced by:
if(options.useContainer) {
   $container = $("<div></div>")
         .addClass(options.containerClass)
         .attr('id', options.containerClass + index);
} else {
   $container = $original;
}

On FF (linux), IE7 (winxp) it looks working.

Original comment by vladimir...@rwe.cz on 6 Jan 2009 at 3:50

GoogleCodeExporter commented 8 years ago
Hi, previous code is not working when there are two (or more) multiples on 
page....

Original comment by vladimir...@rwe.cz on 9 Jan 2009 at 6:20

GoogleCodeExporter commented 8 years ago

Original comment by ryancram...@gmail.com on 21 Feb 2009 at 3:47