I’m deploying a simple asp mvc 2 application on my local IIS 7.5 server.
But when I try to run some javascript
$(function () { alert("works"); })
in view or Site.Master, I do not see any alert.
What is the problem?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
there can be a couple of problems
make sure you have included the
jqueryif you are loading
jqueryfrom the google cdn it might be possible that its blocked on the server in that case reference to thejquery.jssaved on your server