SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict rabbitdog's Avatar
    Join Date
    Jul 2001
    Location
    So. Tenn.
    Posts
    363
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a modified script I've come up with:

    <script>
    function disable_enable(formfield){
    //if the surfer is using IE 4 or above
    if (document.all){
    document.blah[formfield].disabled=!document.blah[formfield].disabled
    }
    }
    </script>

    Called like: disable_enable('description1') (for example)

    I have a 3 form fields name upload[] though (building an array for php) and the script doesnt seem to have any effect if I call disable_enable('upload[]')

    Thanks in advance.

    advisor edit: split from other thread in this forum
    Last edited by weirdbeardmt; Jun 3, 2002 at 11:03.
    Mr Vector
    High quality, royalty free, vector graphics
    for t-shirt artists and graphic/web designers.

  2. #2
    SitePoint Addict rabbitdog's Avatar
    Join Date
    Jul 2001
    Location
    So. Tenn.
    Posts
    363
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by rabbitdog

    advisor edit: split from other thread in this forum

    Thanks, I was wondering what had happened. heh.
    Mr Vector
    High quality, royalty free, vector graphics
    for t-shirt artists and graphic/web designers.


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
  •