Jump to content

add how to disable forms


zachary

Recommended Posts

But it does, if you check the Xhtml tutorial, and go to the taglist reference, at the input page it will say that "disabled" as an attribute is allowed :) In Xhtml it actually needs to have a value though.http://www.w3schools.com/tags/tag_input.aspOr do you mean in an example? :)

Edited by Dan The Prof
Link to comment
Share on other sites

I think it should be written like this:<input type="" vaue="" name="" maxlength="" disabled="disabled" />

In Xhtml it actually needs to have a value though.

So I said, Scott :) That is the syntax for Xhtml :) Edited by Dan The Prof
Link to comment
Share on other sites

technically, it should be written:

<input type="xxxxxx" vaue="xxxxxx" name="xxxxxx" maxlength="xx" disabled="disabled" />

(don't forget the trialing forward slash on tags that have no closing tag):)

Link to comment
Share on other sites

And in the end, we come to fully agreement that the correct syntax of the input element is... :)<input type="xx" value="xx" name="xx" maxlength="xx" disabled="disabled" />(there was an "L" missing in one of the attributes too)

Edited by Dan The Prof
Link to comment
Share on other sites

And finally not forgetting id should be used.<input type="xx" value="xx" name="xx" id="xx" maxlength="xx" disabled="disabled" />In XHTML the name attribute is deprecated. Use id instead.Note: To interoperate with older browsers for a while, you should use both name and id, with identical attribute values.I think that covers everything :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...