I'm using struts 2 application where
< s: form name="myForm">
< s:include value = "test.jsp" >< / s:include>
< img src="../../images/next.png" onclick="fnNext();"/>
< / s:form>
test.jsp contains a table with id = "my table"
Now how use the id of the table in javascript function fnNext():
You could use
element = document.getElementById(id)or using Jquery to select it using$('#your_id')