View Full Version : Can I disable the id attribute from the form tag?
haoniukun
Sep 12th, 2007, 08:39 PM
Dear all,
I've got a application which supports only html3.2 which doesn't have id attribute for html elements.
But I can see that there's really such an attribute when using the form tag.
Can I disable such it?
Thanks for any help.:confused:
:)
Jörg Heinicke
Sep 13th, 2007, 12:51 AM
You can set it explicitly to an empty string and it does not end in the HTML. See AbstractDataBoundFormElementTag. writeDefaultAttributes(..) (http://springframework.cvs.sourceforge.net/springframework/spring/src/org/springframework/web/servlet/tags/form/AbstractDataBoundFormElementTag.java?revision=1.23&view=markup) (starting line 120).
Joerg
haoniukun
Sep 13th, 2007, 01:16 AM
You can set it explicitly to an empty string and it does not end in the HTML. See AbstractDataBoundFormElementTag. writeDefaultAttributes(..) (http://springframework.cvs.sourceforge.net/springframework/spring/src/org/springframework/web/servlet/tags/form/AbstractDataBoundFormElementTag.java?revision=1.23&view=markup) (starting line 120).
Joerg
Thank you for your advice.
I'll try it out.:)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.