Calling Jquery Function From Jstl C:foreach ( Function Not Defined) On Page Load
I'm struggling a bit with joining jstl and jquery. I have a Spring aplication which provides me with a list, for example cars: [Kia, Audi, Fiat, Mazda, Opel] I have an input field
Solution 1:
Minutes after posting, I found a solution. Script should use jstl instead of the other way around. Adding
<script> $(document).ready(function() {
<c:forEachitems="${cars}"var="c">
add_tag("${c}");
</c:forEach>// rest of script adding functions
...
solves my issue.
Post a Comment for "Calling Jquery Function From Jstl C:foreach ( Function Not Defined) On Page Load"