javascript - Included script works no fully -
i have velocity file , these part of code inside
<input type="radio" name="activity" class ='message' id="#springurl('/resources/ajax/notify/test.html')"> i have added notifications.js file. inside these notifications.js file code alert(); or
$(window).load(function(){ alert(); }); works , can't perform code
$(".message").click(function(){ alert("message"); }); how can access ".message" class inside notifications.js file?
i've included notifications.js
<script src="#springurl('/resources/js/notifications.js')"></script>
Comments
Post a Comment