Maxlength for input type

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

  1. #1
    Hi I have the following in my html form:
    Code:

    <input type="text" name="product_staisfication" id="product_staisfication" maxlength="2" readonly="readonly">



    Unfortunately, the "maxlength" isn't working. It is showing up a long text box. How do I fix this?
     
    tin2mon, Sep 26, 2010 IP
  2. nicky821

    nicky821 Member

    Messages:
    95
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Edit: I checked
    <input type="text" maxlength=2> and <input type="text" maxlength="2"> , both are working..
     
    nicky821, Sep 26, 2010 IP