Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Client Side Drop Down

Client Side Drop Down

Scheduled Pinned Locked Moved ASP.NET
sysadmin
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JC KaNNaN
    wrote on last edited by
    #1

    Hi.. I know the simple concept but i dont know ... I have two drop down list in client side.. First Drop down should load automatically when page load... Now i want select some values in first drop down list and its based up on value automatically load in second drop down list... i know the server side coding.. but i want client side because i have reduced post back event..

    Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph"

    D 1 Reply Last reply
    0
    • J JC KaNNaN

      Hi.. I know the simple concept but i dont know ... I have two drop down list in client side.. First Drop down should load automatically when page load... Now i want select some values in first drop down list and its based up on value automatically load in second drop down list... i know the server side coding.. but i want client side because i have reduced post back event..

      Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph"

      D Offline
      D Offline
      daveyerwin
      wrote on last edited by
      #2
      showDropDown=function(){
      

      dds=document.getElementsByTagName("SELECT");
      for(i=1;i<4;i++){
      dds[i].style.display="none";
      }
      dds[dds[0].selectedIndex + 1].style.display="inline"
      }

      Milk
      Coffee
      Tea

      chocolate
      strawberry
      skim

      black
      columbian
      arabic

      iced
      hot
      green

      modified on Sunday, May 23, 2010 12:36 PM

      -- Modified Monday, August 2, 2010 2:04 PM

      J 1 Reply Last reply
      0
      • D daveyerwin
        showDropDown=function(){
        

        dds=document.getElementsByTagName("SELECT");
        for(i=1;i<4;i++){
        dds[i].style.display="none";
        }
        dds[dds[0].selectedIndex + 1].style.display="inline"
        }

        Milk
        Coffee
        Tea

        chocolate
        strawberry
        skim

        black
        columbian
        arabic

        iced
        hot
        green

        modified on Sunday, May 23, 2010 12:36 PM

        -- Modified Monday, August 2, 2010 2:04 PM

        J Offline
        J Offline
        JC KaNNaN
        wrote on last edited by
        #3

        thanks for reply..... i want to connect database in both drop down.... can u send me the sample for that

        Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph"

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups