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. when set property enable = false for checkbox control in design time then after how to enable = true in javascript

when set property enable = false for checkbox control in design time then after how to enable = true in javascript

Scheduled Pinned Locked Moved ASP.NET
javascriptdesignsysadminhelptutorial
4 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.
  • A Offline
    A Offline
    anish27patel
    wrote on last edited by
    #1

    Hello All, i have facing one problem i have one check box like below Now i want to Enabled = true in javascript not server side then how it possible i have try through below code but not woking please let me know how it possible. like, funcction enableAll() { var Checkbox = document.getElementById('<%=uxonechk.ClientID %>'); ConformOwnershipDropdown.disabled = false; } this above function i have call on dropdown "onChange" event Please let me know how it possible to Enabled = true using Javascript Thank you in advance,

    Anish Patel

    A C 2 Replies Last reply
    0
    • A anish27patel

      Hello All, i have facing one problem i have one check box like below Now i want to Enabled = true in javascript not server side then how it possible i have try through below code but not woking please let me know how it possible. like, funcction enableAll() { var Checkbox = document.getElementById('<%=uxonechk.ClientID %>'); ConformOwnershipDropdown.disabled = false; } this above function i have call on dropdown "onChange" event Please let me know how it possible to Enabled = true using Javascript Thank you in advance,

      Anish Patel

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      You need to enable checkbox.right? try this in javascript, Findout CheckBox as chk by getElementById and then, chk.disabled = false; chk.parentNode.disabled = false; Let me know if any pblm is there.

      Arun Jacob http://codepronet.blogspot.com/

      A 1 Reply Last reply
      0
      • A anish27patel

        Hello All, i have facing one problem i have one check box like below Now i want to Enabled = true in javascript not server side then how it possible i have try through below code but not woking please let me know how it possible. like, funcction enableAll() { var Checkbox = document.getElementById('<%=uxonechk.ClientID %>'); ConformOwnershipDropdown.disabled = false; } this above function i have call on dropdown "onChange" event Please let me know how it possible to Enabled = true using Javascript Thank you in advance,

        Anish Patel

        C Offline
        C Offline
        Coding C
        wrote on last edited by
        #3
        function ChkEnabled(){
            var a = document.getElementById('<%=CheckBox1.ClientID %>');
            a.disabled = false;
            if(a.parentElement.tagName == 'SPAN' && a.parentElement.disabled == true)
                a.parentElement.disabled = false;
        }
        

        HTH

        Coding C# ExciteTemplate

        1 Reply Last reply
        0
        • A Arun Jacob

          You need to enable checkbox.right? try this in javascript, Findout CheckBox as chk by getElementById and then, chk.disabled = false; chk.parentNode.disabled = false; Let me know if any pblm is there.

          Arun Jacob http://codepronet.blogspot.com/

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

          Thanks, it's working

          Anish Patel

          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