How is this dropdown done?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gnawz
    New Member
    • Nov 2006
    • 64

    How is this dropdown done?

    Hey guys

    There is this quite navigable menu display at http://search.justdial .com/

    When a user clicks on text box, it displays a certain javascript menu. While on this site, click on the text box for City.
    Anyone knows how this was done??
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    It's done with javascript, friend.

    Head over to the javascript forum.

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      I will move this thread to the Javascript/DHTML forum.

      moderator

      Comment

      • hsriat
        Recognized Expert Top Contributor
        • Jan 2008
        • 1653

        #4
        Try this..
        .
        [code=html]<a href="#" onclick="docume nt.getElementBy Id('city_list') .style.display= '';">Select City</a><div id="city_list" style="position :absolute;displ ay:none;border: red solid 1px;"><a href="#" onclick="docume nt.getElementBy Id('city_list') .style.display= 'none';">Close</a> ---- city list ----</div>[/code]

        Comment

        Working...