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. DropDownList onchage event through Javascript

DropDownList onchage event through Javascript

Scheduled Pinned Locked Moved ASP.NET
questionjavascriptsysadmin
2 Posts 2 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.
  • M Offline
    M Offline
    Mridang Agarwalla
    wrote on last edited by
    #1

    I have a dropdownlist server control on my page. Thers a text box on the page to which is disabled. The dropdownlist contains four options - Apple, Orange, Lemons, Grapes. I've programmatically set the the DropDownList in such as way that then Lemons are selected. the text box gets enabled else it gets disabled. Everytime i select Lemons, a post occurs. I order to avoid this im planning on using JavaScript. How do i add JavaScript. I realllly new to JavaScript so if you give me a simple code snippet, it'll give me a head start. What event would i have to write for DropDownList - OnChange?

    S 1 Reply Last reply
    0
    • M Mridang Agarwalla

      I have a dropdownlist server control on my page. Thers a text box on the page to which is disabled. The dropdownlist contains four options - Apple, Orange, Lemons, Grapes. I've programmatically set the the DropDownList in such as way that then Lemons are selected. the text box gets enabled else it gets disabled. Everytime i select Lemons, a post occurs. I order to avoid this im planning on using JavaScript. How do i add JavaScript. I realllly new to JavaScript so if you give me a simple code snippet, it'll give me a head start. What event would i have to write for DropDownList - OnChange?

      S Offline
      S Offline
      Sylvester george
      wrote on last edited by
      #2

      this will teach you perfectly http://www.w3schools.com/js/default.asp[^] Regards, Sylvester G Senior Software Engineer Xoriant Solutions

      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