Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    67
    Member #
    13752
    Hi!

    I have built a form and was wandering if someone could help me out with this?
    Bascially, i have a radio group.
    The user has a choice of either selecting one of the other.
    If the user selects the first radio button i would like the attachment fields to be greyed out or disabled and vice versa.
    Can someone please sugguest how i can do this?

    The code is...
    HTML Code:
    <input value="word_count" name="wordCountGroup" type="radio" id="wordCount" checked="checked" />
    Number of words in document to be translated<input name="inputWordCount" type="text" maxlength="6" id="inputWordCount" size="5" /><br /><div class="small-gap"></div>
    
    <input value="upload" name="wordCountGroup" type="radio" id="upload"/>Upload up to 3 documents for Wordcount<br /><br />
    <input name="attachment" type="file" size="20" /><br />
    <input name="attachment2" type="file" size="20" /><br />
    <input name="attachment3" type="file" size="20" /><br />
    Thanks.

  2.  

  3. #2
    Member
    Join Date
    Aug 2006
    Posts
    67
    Member #
    13752
    ok this is what i have got so far. I just need to figure out how to enable attachment2 and attachment3 as well!
    HTML Code:
     <form name="form">
    <input value="word_count" name="wordCountGroup" type="radio" id="wordCount" checked="checked" />
    Number of words in document to be translated<input name="inputWordCount" type="text" maxlength="6" id="inputWordCount" size="5" /><br /><div class="small-gap"></div>
                    
    
                    <input value="upload" name="wordCountGroup" type="radio" id="upload" onclick="javascript:document.form.attachment.disabled=false" />Upload up to 3 documents for Wordcount<br /><br />
    
    <input name="attachment" type="file" size="20" disabled="true"  /><br />
    <div class="small-gap"></div>
    <input name="attachment2" type="file" size="20" disabled="true"  /><br />
    <div class="small-gap"></div>
    <input name="attachment3" type="file" size="20" disabled="true"  /><br />
    </form>
    thanks.

  4. #3
    Member
    Join Date
    Aug 2006
    Posts
    67
    Member #
    13752
    its ok ive sorted it. i proberly dont need to explain as it's pretty basic stuff.

    cheers.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:23 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com