Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は主に HTML/CSS/JS を行っているので、ここでちょっと迷っています。とにかく、これが私が望む方法で可能かどうかはわかりません。
私はこのコードを持っています
<html:text styleClass="span4" title="No spaces or dashes" />
この入力を属性「プレースホルダー」でレンダリングしたい。これについてどうすればいいですか?
前もって感謝します!
struts が提供しない場合は、必要に応じて jQuery を使用して注入できます
$("#idOfInputText").attr('placeholder', 'some text')
styleIdstruts のタグの属性を使用して id を指定できます
styleId