• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access the Struts HTML elements in JS

 
Siva Arun
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I just want to set the read only property to false when clicking some button. Could you please help to access this element in the javascript?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no such thing as a "Struts element". All those tags do is to generate "normal" HTML. So just look at what HTML is being generated and deal with that from script like any other HTML elements.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What he said, but you might want to use the "styleId" attribute to make things easier.
 
Siva Arun
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks All. It works fine now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic