Results 1 to 2 of 2

Thread: Want to get this DIV to appear under the textbox and button in this jQuery Accordian

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Want to get this DIV to appear under the textbox and button in this jQuery Accordian

    I've am trying to add a DIV in an existing - very complicated - jQuery/JS app. I want this DIV to appear under the textbox and button - see attached image.

    I'm adding the DIV with the second .appendTo line (strNewErrMsg div). I just tried adding the <br /> to get it to go onto a new line - but that is not working.

    Code:
    $('#acs-button-list .acs-panel-btn-clear').clone().appendTo("#" + strNewAccordionDiv).removeAttr("id")
                                                            .addClass("acs-tracker-buttons")
                                                            .addClass("ui-state-highlight");
    $("<br /><div id='" + strNewErrMsg + "'></div>").appendTo("#" + strNewAccordionDiv);
    It's got to be some kind of float thing that the accordion has. I always struggle with div float - I don't want to hack at this.

    Thanks !
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  2. #2

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Want to get this DIV to appear under the textbox and button in this jQuery Accord

    I changed it to this:

    Code:
    $("<div id='" + strNewErrMsg + "' class='acs-tracker-below'></div>").appendTo("#" + strNewAccordionDiv);
    And created CSS that looks like this:

    Code:
    .acs-tracker-below
    {
        clear: both;
    }
    Is this clear:both style only affecting this one DIV I'm putting in place? Or could it hurt other operational aspects of the accordion??

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width