SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    calender overlay my design border when opened

    hey folks,
    i am working on a my web app and i have a problem. i m using jQuery datepicker. its working fine but when i click on it opens but it open under the bottom border of of my design. how can i make it open on top. i guess setting z-index of css will help but as i m new to jQuery i donno how to wrap the date picker in a div so i can set the div property
    Code JavaScript:
                    <input type="text" name="txtInstallation" id="txtInstallation" class="txtfield" />
                    <script language="javaScript" type="text/javascript">
                    $(function(){
                        $("#txtInstallation").datepicker({
                        showOn: 'button',
                        buttonImage: '../images/calendar.png',
                        buttonImageOnly: true,
                        monthNamesShort: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
                        changeMonth: false,
                        changeYear: true,
                        dateFormat:'M-dd-yy'
     
                        })
                    });
    All those who wander aren't lost.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,681
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    What is the design that you're using, because depending on the way that your design is presented, css can solve your problem with great ease. One possible solution (we haven't tested it on a test page yet) is that setting overflow to visible helps to ensure that the border remains fully wrapped around any content that's contained within.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Addict sdleihssirhc's Avatar
    Join Date
    Feb 2009
    Posts
    387
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You say that the bottom border overlaps the date picker. Do you want the border to extend down, so that the date picker is inside of it, or do you want the date picker to appear on top of the border? Is there a live example we can check out?

  4. #4
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    yep i wanted the date picker to appear on top of the border. how can i do that, i know i can set its div's z-index to higher value.right? but i donno how to wrap a datepicker inside div
    All those who wander aren't lost.

  5. #5
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    help any1?
    All those who wander aren't lost.


Bookmarks

Posting Permissions

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