Attribute modification by script

Hi, must be simple trick but I did not success modifying an attribute text value from a block without using the mouse: say, I want to change an
attribute tagged MyAtt from a block MyBlock from a value "1" to "2"... any suggestion? Thanks a lot!
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
HiHo; Look at www.cadence.com on the "Get the code" section.

any
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.