Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: <input

  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    179
    Thanks
    17
    Thanked 0 Times in 0 Posts

    <input

    Does <input tag have a description attribute? (I do not see it).

    But I did see some codes like this:


    <input type="text" name="test" class="maskable"
    description="Day"
    value="<%=testBean.getSessionStartDateDay()%>"
    maxlength="3">


    Thanks

    Scott

  • #2
    Banned
    Join Date
    Feb 2008
    Location
    Winnipeg, Canada
    Posts
    396
    Thanks
    0
    Thanked 29 Times in 29 Posts
    W3 says no.

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Posts
    179
    Thanks
    17
    Thanked 0 Times in 0 Posts
    Further question:

    Is that true the standard HTML tag allows a customerized attribute?

    For instance:

    In the case I provided, <input id="test" description="abc"...

    Actually, I saw the codes in working.

    var desc = document.getElementById("test").getAttribute('description');
    ...
    ...

    And it is working in a live application. But I just want to confirm if a standard HTML tag allows a customerized attribute in it?


    Thanks


    Scott
    Last edited by otnj2ee; 02-12-2008 at 11:05 PM.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Its not valid coding but you can do it. If you aren't worried about validation then go for it. From the sounds of things you likely don't even know what validation means.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Banned
    Join Date
    Feb 2008
    Location
    Winnipeg, Canada
    Posts
    396
    Thanks
    0
    Thanked 29 Times in 29 Posts
    If you want to start bad habits and go against the grain of the internet and all its standards then you can pretty much do whatever you want with today's browsers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •