Maxlength for input type

Discussion in 'HTML & Website Design' started by tin2mon, Sep 17, 2010.

  1. #1
    Hi I have the following in my html form:
    Unfortunately, the "maxlength" isn't working. It is showing up a long text box. How do I fix this?

    thanks
    Tintu
     
    tin2mon, Sep 17, 2010 IP
  2. punchaboveyourweight

    punchaboveyourweight Peon

    Messages:
    81
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to change the width of the text box. The maxlength is for the number of characters allowed but separate from the width.
     
    punchaboveyourweight, Sep 17, 2010 IP
  3. Martenxxx

    Martenxxx Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I recommend to use CSS for set width of any element.

    So in your case would be:

    #product_staisfication {
    width: 100px;
    }
     
    Martenxxx, Sep 24, 2010 IP