Web Design Forum: Shaun - Viewing Profile - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting

Shaun's Profile User Rating: *****

Reputation: 23 Excellent
Group:
Members
Active Posts:
608 (0.42 per day)
Joined:
24-June 08
Profile Views:
5,651
Last Active:
User is offline May 23 2012 02:37 PM
Currently:
Offline

My Information

Member Title:
Expert
Age:
25 years old
Birthday:
April 19, 1987
Gender:
Male Male
Location:
New York, NY

Contact Information

E-mail:
Private

Users Experience

Experience:
Web Guru
Area of Expertise:
Web Developer

Latest Visitors

Posts I've Made

  1. In Topic: Do you still support ie7

    11 May 2012 - 10:59 PM

    The last company I worked for supported browsers based on their analytical reports. My current company supports only the current and previous versions of each major browser.

    Both seem to be legitimate rules. Depending on the purpose of your website, I would recommend either of the above.
  2. In Topic: how do i dynamically assign classes to DIV's ... Somehow!?

    11 May 2012 - 10:54 PM

    Without fully understanding your post, to achieve what you're asking for in the subject, you would use JQuery:

    $('#revealVoucher').addClass('revealVoucher_01');


    You can change the class name to a php variable if that's what you need to do. I have to say though, if they're going to be unique, I wouldn't use classes.
  3. In Topic: Contact form validation

    27 April 2012 - 11:12 PM

    Help you write it? Sure. Write it for you? Nah
  4. In Topic: Error in W3C check

    27 April 2012 - 04:32 PM

    Using a semi-colon in the content attribute instead of a double quotation mark.
  5. In Topic: Controlling HTML form using Javascript

    27 April 2012 - 04:18 PM

    No problem!

    You could even make it shorter by using a class for the fields:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    <html>
    <head>
    <title></title>
    <script type="text/javascript" src="javascript/jquery.js"></script>
    </head>
    <body>
    
    <form id="formid">        
    <input type="text" id="req_field" />        
    <select class="disabled_field" disabled="disabled">                
    <option>Please Select</option>                
    <option>Option 1</option>                
    <option>Option 2</option>                
    <option>Option 3</option>        
    </select>
    <input type="submit" value="Search" class="disabled_field" disabled="disabled" />
    </form>
    
    <script type="text/javascript" language="javascript">
    $('#req_field').keyup(function(){
            if($(this).val() != ''){           
                    $('.disabled_field').attr('disabled', '');    
            } else {   
                    $('.disabled_field').attr('disabled', 'disabled');       
            }
    });
    </script>
    
    </body>
    </html>
    

Comments

Page 1 of 1
  1. Photo

    Ben 

    19 Apr 2009 - 18:39
    Happy Birthday Shaun! :)
  2. Photo

    Ben 

    16 Jul 2008 - 20:24
    Hey Shaun, yes I agree, I think forums are fantastic for sharing information. I'm proud of all the members of this forum who make it such a great atmosphere. I'm from Colchester, Essex.
  3. Photo

    Ben 

    16 Jul 2008 - 20:00
    Hey Shaun! Hope you are well, did you see your mention in the newsletter yesterday?
  4. Photo

    Seth 

    26 Jun 2008 - 21:47
    I like your site.
  5. Photo

    tigerlabs 

    24 Jun 2008 - 22:42
    Welcome Shaun! :) Great to have you here! :)
  6. Photo

    Paul Boreham 

    24 Jun 2008 - 21:52
    I'm still in Lincs at the moment :( Moving next Friday! Wahooo!
    Like your site, very nice on the eye!
Page 1 of 1