There's no need to add this to the code. You can just place the wrapper in
the actual HTML and apply whatever CSS you need specific to the instance of
the mcDropdown.

-Dan

On Mon, Jan 18, 2010 at 4:21 PM, Jerry <jerryab...@gmail.com> wrote:

> Howdy...
>
> The GivaInc.com site says that the devs monitor this list for stuff
> and they don't give out their emails anywhere on the site. So...
>
> The mcDropdown is great but needed a little push from me in order to
> get the field to display properly on a form with labels to the left of
> the field (versus above). Because of that I needed to have a way to
> create css for the anchor and wrapper div tags inserted by the
> mcDropdown plugin.
>
> I added the following two new defaults:
>
>                , wrapperId: null              // The id of the wrapper for
> more css
> control ...  added 2010-01-18 Jerry Ablan <jab...@pogostick.com>
>                , anchorId: null                           // The id of the
> anchor for more css
> control  ...  added 2010-01-18 Jerry Ablan <jab...@pogostick.com>
>
> In addition, the following was changed at line 160 (after insert of
> above two lines):
>
>                // create the div to wrap everything in
>                $divInput = $('<div class="mcdropdown"><a ' + (
> settings.anchorId !
> == null ? ' id="' + settings.anchorId + '" ' : '' ) + 'href="#"
> tabindex="-1"></a><input type="hidden" name="' + (el.name || el.id) +
> '" id="' + (el.id || el.name) + '" /></div>')
>                        .appendTo($('<div ' + ( settings.wrapperId !== null
> ? 'id="' +
> settings.wrapperId + '" ' : '' ) + 'style="position: relative;"></
> div>'))
>                        .parent();
>
> With the wrapper div and anchor accessible now, I can style the CSS to
> get the field in the right place.
>
> Thanks!
>
>
>

Reply via email to