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. hello everyone

hello everyone

Scheduled Pinned Locked Moved ASP.NET
javascripthelp
3 Posts 3 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.
  • B Offline
    B Offline
    ballameharmurali
    wrote on last edited by
    #1

    hello everyone, I have a small doubt regarding the CheckBoxList.I want to capture the ID of the checkboxlist items using the javascript.Can anybody help me in writing the code.Thankx in advance. ok byeeeeee Murali

    N N 2 Replies Last reply
    0
    • B ballameharmurali

      hello everyone, I have a small doubt regarding the CheckBoxList.I want to capture the ID of the checkboxlist items using the javascript.Can anybody help me in writing the code.Thankx in advance. ok byeeeeee Murali

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      CheckBoxList will be rendered as several HTML input checkbox. View source the page and find checkbox names. It will be generated in sequential way. You can loop through it and get the objects.


      My Website | Ask smart questions

      1 Reply Last reply
      0
      • B ballameharmurali

        hello everyone, I have a small doubt regarding the CheckBoxList.I want to capture the ID of the checkboxlist items using the javascript.Can anybody help me in writing the code.Thankx in advance. ok byeeeeee Murali

        N Offline
        N Offline
        Nick cheng liu
        wrote on last edited by
        #3

        I had written a example for you : function Test(objSource) { for(var i = 0;i< objSource.childNodes.length;i++) { var obj = objSource.childNodes[i]; if(obj.tagName != null && obj.tagName.toLowerCase() == "input" && obj.type.toLowerCase() == "checkbox") { alert(obj.id); } else { Test(obj); } } } //begin get ids of CheckBoxList function GetIDs() { var objSource = document.getElementById("CheckBoxList1"); Test(objSource); } -- modified at 8:34 Monday 13th August, 2007 learning english

        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