Put the ONGL tag into the html tag, and just operate the html tag
Example code:
html
The code copy is as follows:
<div id="categoryid" style="display:none;"><s:property value="id"/></div>
javascript
The code copy is as follows:
<script type="text/javascript">
var categoryid = document.getElementById("categoryid").innerHTML;
</script>