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