SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2005
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do i disable input fields during on load form?

    i have radio group buttons Category [ Cash | Panel ], radio group buttons Relationship [ Child | Self ], drop down list Panel Name and text field Employee No. what i want to do is, i want radio group buttons checked at Cash and other input fields: Relationship, Panel Name and Employee No are disable during form on load. can someone help me?

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you say "during page onload" are you referring to "until the page has loaded" or "once the page has loaded" ?

    The essence of disabling stuff is:
    <input id="myRadio" type="radio" disabled="true" />

    The scripting equivalent would be
    document.getElementById("myRadio").disabled = true; // or false


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •