jojo kim
jojo kim

Reputation: 141

getting model attribute from javascript

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

Answers (0)

Related Questions