Try to search your question here, if you can't find : Ask Any Question Now ?

jquery not working on index page on new created mvc project

HomeCategory: stackoverflowjquery not working on index page on new created mvc project
Avatarkundan asked 1 month ago

I have added referenced jquery on index page but it’s not working. on layout page it’s working fine.

@{
    ViewBag.Title = "Home Page";
}
<html>
<head>
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <scritp>
        $(document).ready(function () {
        alert('Test');

        });
    </scritp>
</head>
<body>
    <div id="div1" class="row">
        <input id="txt1" type="text" /><br />
        <input id="txt2" type="text" /><br />
        <input id="btn1" type="button" value="OK" /><span id="sum"></span>

    </div>
</body>
</html>

I need to alert message when page ready.

1 Answers
Best Answer
Avatarnaveen answered 1 month ago
Your Answer

2 + 3 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com