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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -