SoFunction
Updated on 2025-04-03

JavaScript manipulation of OGNL tag example code

Put the ONGL tag into the html tag, and just operate the html tag

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>