Reputation: 141
i'm going to send fileVO(java bean) to my js file. how to get this value from js?
model attribute from java.
model.addAttribute("fileVO", fileVOListTmp.get(0));
and I need to get this value in javascript.
<script>
var fileVO = $('#fileVO').val();
alert(fileVO);
</script>
but it shows undefined
Upvotes: 0
Views: 1343