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:forEach items="${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"