1
2
3
4
5
6
7
8
<button type="submit" name="r1" style="border: 0; background: transparent; width: 100px; height: 100px;"
onClick="form_submit(this.form.name, 1)">
<img id="image_r1" src="static/1.gif"/>
</button>
<button type="submit" name="r2" style="border: 0; background: transparent; width: 100px; height: 100px;"
onClick="form_submit(this.form.name, 2)">
<img id="image_r2" src="static/1.gif" onclick="alert('foo1')"/>
</button>
def render = {
"#image_r1" #> <img id="image_r1" src="static/2.gif"/>
}