• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Attribute id (or class) invalid for tag submit according to TLD

 
matt love
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I use tld tags like so:

<td>
<html:submit property="btnInitializeDB">
<fmt:message key="mainMenu.select" />
</html:submit>
</td>

is there a way to standardize the width of the button so I can change the width in 1 spot and have it affect all like buttons?

I've tried CSS inline and internal, like:

<html:submit property="btnInitializeDB" id="x">

which results in:

"Attribute id invalid for tag submit according to TLD".

Is there a good reason to retain the tld tags or should I just go with straight html? If you recommend keeping the tld tags, can you help me make it work?

Thanks.

Matt
 
Lorand Komaromi
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
styleId instead of id!

Sometimes it's useful to check the documentation...
 
matt love
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks Lorand.

Works like a charm.

Matt

 
Lorand Komaromi
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic