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. Selected Index Change event in JavaScript

Selected Index Change event in JavaScript

Scheduled Pinned Locked Moved ASP.NET
javascriptdatabasesysadmin
4 Posts 4 Posters 0 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.
  • D Offline
    D Offline
    deepseeindeepsy
    wrote on last edited by
    #1

    Hi there, Sir, I want a code on selected index change event in javascript that will populate another ddl depending on selected value, hence to avoid server trip. Thanx.. :)

    C A A 3 Replies Last reply
    0
    • D deepseeindeepsy

      Hi there, Sir, I want a code on selected index change event in javascript that will populate another ddl depending on selected value, hence to avoid server trip. Thanx.. :)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Well, you'd need to either use AJAX, or send every possible list of data for the second drop down list down to the client every time.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • D deepseeindeepsy

        Hi there, Sir, I want a code on selected index change event in javascript that will populate another ddl depending on selected value, hence to avoid server trip. Thanx.. :)

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        Use OnChange="javascript:populateDdl();" On populateDdl you can call server using AJAX, and parse the response and load it to the dropdown or anything on your logic. :)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Microsoft Bing MAP using Javascript
        CLR objects in SQL Server 2005
        Uncommon C# Keywords
        /xml>

        1 Reply Last reply
        0
        • D deepseeindeepsy

          Hi there, Sir, I want a code on selected index change event in javascript that will populate another ddl depending on selected value, hence to avoid server trip. Thanx.. :)

          A Offline
          A Offline
          archit3000
          wrote on last edited by
          #4

          use AJAX

          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