SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Displaying a generated code from an external .js inside a div

    Hi,

    I have a .js file that generates a Calendar Date Picker. I call the calendar using onClick. Here's the code:


    <a id="_name_link" href="#" onClick="DatePicker.toggleDatePicker('name')" class="demo_link">[ choose date ]</a>
    <div id="_name_calendar" class="date_picker" style="display:none"></div>


    What I want? Instead of clicking the link to pop-up the calendar, I want to display the calendar always (no links).

    How do I display a generated code from an external .js inside a div?

  2. #2
    SitePoint Addict jtrelfa's Avatar
    Join Date
    Oct 2004
    Location
    Troy, Mi
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you considered removing the 'display:none' from the div style?


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
  •